You are here

leelight's blog

"Cannot allocate memory" OutofMemory when call Ant to build Polish project in Tomcat

I have written one J2EE web service which was run in Tomcat, this service will call Ant to build one J2ME Polish project. It can be run without problem, aber will got such exception "ProGuard is unable to obfuscate: java.io.IOException: Cannot run
program "java": java.io.IOException: error=12, Cannot allocate memory" after several times' building. This is abvious OutofMemory exception.

Tomcat service was run on CentOS linux, the first thing what i thought is to increase the initial memory of Tomcat.

HTTPS Connection with Tomcat and WTK emulator

1. Tomcat Configuation

Creating HTTPS Connection

Firstly should create a temporarely SSL certificate to use the
Tomcat in an SSL mode.

Blog: 

MIDlet jar signing (a tutorial) Revised (T)

Author: David Hayes
Link: http://www.spindriftpages.net/blog/dave/2006/06/18/midlet-jar-signing-a-tutorial-revised/

Recommended to visit original blog to view lots of useful comments 

 

Blog: 

Some Data Interchange Ways in Java ME

Just record some ways of data interchange in J2ME.


1. XML

1.1 KXML

Download

Size: 30 kb

XML Pull Parser, tested, low memory needed

1.2 XPP3

Blog: 

Install XCache for PHP 5 on CentOS

XCache is a open-source opcode cacher, which means that it accelerates
the performance of PHP on servers. It optimizes performance by removing
the compilation time of PHP scripts by caching the compiled state of
PHP scripts into the shm (RAM) and uses the compiled version straight
from the RAM. This will increase the rate of page generation time by up
to 5 times as it also optimizes many other aspects of php scripts and
reduce serverload.

Blog: 

MyEclipse+Hibernate-My Exceptions List

Environment: hibernate 2 and Oracle 9i:
This post will record the strange exceptions I have met.

Exception 1:


java.sql.SQLException: ORA-02289: sequence does not exist

Blog: 

SVN Subclipse crashed my Eclipse

Few days ago when I was working with Eclipse (3.2), without any premonition, my eclispe crashed. It only showed me one error windows with unuseful message. Then my nightmare began. Everytime I restart Eclipse, it just crashed with the error windows and I have checked the logs, only found some strange message, does not tell me where is wrong. That is crazy, I did nothing why it crashed. And I tried Eclipse 3.3, the same problem.

Page Loading: Animated Progress Indicators (T)

Origianl Source: http://www.webgyver.info/?p=86

If you’re developing AJAX features, or if your database driven web
site requires a few seconds to grab some information, you need some
kind of visual clue, letting your users know that they will have to
wait while something is happening. Right?

Loaders_02

J2ME Application Icon sizes for Devices (T)

Wondering about correct size of application icons for mobile devices?

Here is the list :-)

Application Icon sizes
From J2me wiki

Many phones use many different size icons to display next to the
applications name. Please add to and edit this list when you can
confirm exactly what the maximum icon size is for a specific phone.

Quickly to log your code with log4j in 3 minutes

If you are one lazy programmer like me and have no time to read the document of log4j but still want to use log4j, try to read the following.

At least you'd better know that log4j is one tools to help you debug and log what happened with your code, anywhere and anywhen. I was used to use System.out.println() to debug my code, and I have written one function to do that:

Blog: 

Pages

Subscribe to RSS - leelight's blog