PDA

View Full Version : java out.of.lang memory in IE



fman
10th September 2009, 04:32 PM
I was running my reports just fine, then when I tried to run a rather large dashboard, I suddenly got an out of memory error.

I am running on Internet Explorer 6.1, Firefox 3.5.2 and Safari and all exhibit the same behaviour. How do I get around this?

FerencMantfeld
11th September 2009, 09:04 AM
The browser has limiitations on the size of memory it can run be default. Solution is to adjust java heap size.

You need to go into Control Panel --> Java --> Java tab --> Java Applet Runtime settings, click 'View' button.

For the given JRE, at the right side, you can add runtime parameters. Add this:
-Xmx256m

This tells any JVM, which is what your browser uses, to allow for up to 256 MB of RAM to be used.

Be careful about assigning this value too high, especially in Windows, since Windows will attempt to allocate this memory in contiguous blocks and if it can't find this much contiguous free memory, the browser will not be able to load the runtime environment.

256 MB should be adequate.