[ome-users] java.lang.OutOfMemoryError: PermGen space

Josh Moore josh at glencoesoftware.com
Thu Mar 31 08:35:07 BST 2011


On Mar 31, 2011, at 12:05 AM, Wood, Christopher wrote:

> Hi,

Hi Chris,

> I am getting (I restarted omero in the meantime) errors like this in master.err:
> 
> 3/30/11 16:55:02:131 error: Blitz-0-Ice.ThreadPool.Server-7: java.lang.OutOfMemoryError: PermGen space
> 
> 3/30/11 16:55:23:101 error: Blitz-0-Ice.ThreadPool.Server-9: java.lang.OutOfMemoryError: PermGen space

Do you know what series of operations (e.g. importing a file of size X, then viewing it) lead to the OutOfMemoryError? I ask to try to help judge how much memory you are going to need. If you'd like to send your Blitz-0.log (again), we should be able to track down what happened.

> I assume there is a setting somewhere to increase the JVM memory, but I am not sure where that is.

In etc/grid/template.xml on line 174 or so, in the <server-template id="BlitzTemplate"> element, there's an element:

  <option>-Xmx512M</option>

If there are resources available on that system, you might try "-Xmx1024M".

> I currently have 2 GB of memory on this machine.
> 
> Here are the java commands from ps:
> 
> 2696 ?        Sl     0:21 java -Xmx512M -Djava.awt.headless=true -Dlog4j.configuration=etc/log4j.xml -Domero.logfile=var/log/${omero.name}.log -Domero.name=Blitz-0 -jar lib/server/blitz.jar --Ice.Config=/OMERO/OMERO.server-Beta-4.2.2/var/master/servers/Blitz-0/config/config
> 2702 ?        Sl     0:20 java -Xmx256M -Djava.awt.headless=true -Dlog4j.configuration=etc/log4j-indexing.xml -Domero.logfile=var/log/${omero.name}.log -Domero.name=Indexer-0 -jar lib/server/blitz.jar ome.fulltext --Ice.Config=/OMERO/OMERO.server-Beta-4.2.2/var/master/servers/Indexer-0/config/config
> 
> Thanks
> Chris

Cheers,
~Josh


More information about the ome-users mailing list