Linear Collider Forum



Home » Software Tools » org.lcsim » java.lang.OutOfMemoryError:
java.lang.OutOfMemoryError: [message #1087] Mon, 10 September 2007 18:53 Go to next message
zhaohw
Messages: 17
Registered: March 2007
Location: SLAC
Hello,

I newly met a memory problem when I am using jas3 to run a job.
The error massage is :

java.lang.OutOfMemoryError: Requested array size exceeds VM limit.

Do you have any idea about this error ?

Thanks,
Haiwen
Re: java.lang.OutOfMemoryError: [message #1088 is a reply to message #1087] Mon, 10 September 2007 18:57 Go to previous messageGo to next message
jfstrube
Messages: 64
Registered: September 2004
Location: Tohoku University
Hello Haiwen,

this is a frequently asked question. Please refer to the JAS3 FAQ
for instructions.

Cheers,
Jan
Re: java.lang.OutOfMemoryError: [message #1089 is a reply to message #1088] Mon, 10 September 2007 19:29 Go to previous messageGo to next message
tonyj
Messages: 138
Registered: January 2004

HI, Jan is write about the FAQ, however in the case of

Requested array size exceeds VM limit.

another possibility is that you, or some code on your behalf, is asking for a crazily large array. Do you know when the error occurs?

Tony
Re: java.lang.OutOfMemoryError: [message #1482 is a reply to message #1089] Wed, 04 June 2008 05:16 Go to previous messageGo to next message
rwaliczek
Messages: 6
Registered: April 2008
Location: Institute of Nuclear Phys...
Hello,
I have similar problem. When I try to run a job I get error:

java.lang.OutOfMemoryError: Java heap space
at java.util.ArrayList.<init>(ArrayList.java:112)
at org.lcsim.util.lcio.SIOReconstructedParticle.<init>(SIOReconstructedParticle.java:39)
at org.lcsim.util.lcio.SIOReconstructedParticleBlockHandler.add CollectionElements(SIOReconstructedParticleBlockHandler.java :19)
at org.lcsim.util.lcio.AbstractBlockHandler.readBlock(AbstractB lockHandler.java:34)
at org.lcsim.util.lcio.LCIOReader.read(LCIOReader.java:66)
at org.lcsim.util.loop.LCIOEventSource.next(LCIOEventSource.jav a:70)
at org.freehep.jas.extensions.recordloop.InteractiveRecordLoop. getNextRecord(InteractiveRecordLoop.java:372)
at org.freehep.jas.extensions.recordloop.RecordLoopManager.run( RecordLoopManager.java:66)
at java.lang.Thread.run(Thread.java:619)

But in this case the increase memory to 512Mb and more doesn`t resolve this problem. Any idea?
I have JAS3-0.8.4rc3, I use jdk1.6.0_10, and .slcio file come from Marlin.

many regards,
Radek
Re: java.lang.OutOfMemoryError: [message #1483 is a reply to message #1482] Wed, 04 June 2008 07:06 Go to previous messageGo to next message
NormanGraf
Messages: 80
Registered: January 2004
Hello Radek,
It appears that you are looking at the output from a full reconstruction. These files can often be quite large, since many, if not all, of the intermediate collections are kept. Is the .slcio file you are trying to analyze publicly accessible? If so, I could investigate what is causing your problem.
Norman

[Updated on: Wed, 04 June 2008 07:07]

Re: java.lang.OutOfMemoryError: [message #1484 is a reply to message #1483] Wed, 04 June 2008 11:48 Go to previous messageGo to next message
rwaliczek
Messages: 6
Registered: April 2008
Location: Institute of Nuclear Phys...
Hello Norman,
I use a lot of processors to reconstruction, but If I turn of more processors exactly the same error appear..JAS3 correct read only .slcio from Mokka, where are only Sim collection and some collection from digitalization process (ECAL,HCAL). If Its no problem for you I can send my .lcio (about 3mb) file to your email.

Cheers,
Radek
Re: java.lang.OutOfMemoryError: [message #1489 is a reply to message #1484] Thu, 05 June 2008 06:43 Go to previous messageGo to next message
tonyj
Messages: 138
Registered: January 2004

HI, can you attach file lcio file to a reply to this forum posting rather than sending it via e-mail?

Tony
Re: java.lang.OutOfMemoryError: [message #1490 is a reply to message #1489] Thu, 05 June 2008 07:54 Go to previous messageGo to next message
rwaliczek
Messages: 6
Registered: April 2008
Location: Institute of Nuclear Phys...
Hi, This file is too big(1 event = 2,5Mb), but I generated newest .slcio from mokka 06-01 and its ok, but if I turn on PandoraPFA processor to Marlin I get the same error from JAS3. I think that this processors cause this error, what do you think?

[Updated on: Thu, 05 June 2008 07:55]

Re: java.lang.OutOfMemoryError: [message #1491 is a reply to message #1490] Thu, 05 June 2008 08:15 Go to previous messageGo to next message
tonyj
Messages: 138
Registered: January 2004

HI, I think it is not really a memory problem, my guess is that there is a problem reading the output from PandoraPFA. We will need an example file to look at the problem. Maybe you could attach a single event lcio file to the forum? Or maek it acccessible via FTP or http?

Tony
Re: java.lang.OutOfMemoryError: [message #1492 is a reply to message #1491] Thu, 05 June 2008 08:57 Go to previous message
rwaliczek
Messages: 6
Registered: April 2008
Location: Institute of Nuclear Phys...
Ok, its the link to single event e+e-, include PandoraPFA processor:
http://www.uploading.com/files/2VSTYR02/e+e-500GeV.slcio.htm l
Previous Topic:LCRelation
Next Topic:errors during JAS install
Goto Forum:
  

[ PDF ]

Current Time: Sat Dec 14 10:03:58 Pacific Standard Time 2019
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.1.
Copyright ©2001-2010 FUDforum Bulletin Board Software