Jump to content
Excelsior Forums
Sign in to follow this  

OutOfMemory Error

Recommended Posts


I am getting an OutOfMemory Error in the compiled version (compiler 3.7) of my application. This happens when multiple threads are busy performing computation intesive tasks. When I run the application in interpreted mode for the same scenario, it seem to run fine.

After observing the heap usage pattern, it seems to me that garbage collection is not happening when it is needed. Is there any reason why GC thread might be blocked or paused for long period?

I have used different GC ratio, but the application seems to always crash due to OutOfMemory. Since the interpreted version of the application does not seem to lose any memory, I am assuming that there is no potential memory leak.

I was wondering whether anyone knows any jet runtime options that will provide GC threads higher priority to perform garbage collection.

Thank you.

Share this post

Link to post
Share on other sites


I would suggest you to do the following.

1) Install JET 3.7 Maintenance Pack 4, available at http://www.excelsior-usa.com/jetdl370mp4.html.

Several memory leaks were fixed in this update, so it could solve the problem.

2) Increase the maximum heap size. It can be done in the Excelsior JET on page Options, or using "jet.gc.heaplimit" system property. If you set the maximum heap size when running your application on Sun's JRE (using -Xmx option), then be sure to set it for the executables, compiled by JET as well.

3) Experiment with other GC options, such as "jet.gc.defragment" and "jet.gc.ratio". Also, you can try to enable undocumented "jet.gc.noinc" property (it increases garbage collection time but decreases the memory consumption).

If nothing of the above helps, then you can make a sample, that demonstrates the problem and send it to java@excelsior-usa.com.


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this