From: <wil...@di...> - 2016-10-11 16:47:54
|
Attached is a screenshot from JVisualVM from when I have generated such an error, with -Xmx512m. Meanwhile, java is using 600% of my processor (I have eight hyperthreads). It is unclear to me what Java is doing. CS-Studio does not die, and I don't even get OutOfMemoryError from the Eclipse console, but this time I could kill CS-Studio with not too much difficulty. I can identify a screen that is gobbling about 200mb - this helps me generate such errors. ________________________________ From: mar...@pt... [mar...@pt...] Sent: 11 October 2016 15:48 To: Rogers, Will (DLSLtd,RAL,TEC) Cc: cs-...@li... Subject: Re: [Cs-studio-core] CSS running out of memory Hi Will, as already suggested you should acquire a heap dump to see which part occupies the memory. Another helpful tool is Eclipse MAT. It is available as a Eclipse Plugin or Standalone RCP Application. It can acquire a heap dump and analyze it. Some Comfort Functions are "Leak Suspects" or "Top Consumers" for example which give you a pie chart of the memory consumption etc. With this information you could decide how to proceed. If the application really runs out of memory it will throw an "OutOfMemoryException" with a stack trace and terminates. But you describe "it grinds to a halt and is unusable" and "difficult to kill". It is also possible that there is a loop / deadlock or some task using the processor (delaying the redraw). Marcus Von: <wil...@di...> An: <cs-...@li...> Datum: 06.10.2016 18:01 Betreff: [Cs-studio-core] CSS running out of memory ________________________________ Hi all, At Diamond, we have had CS-Studio run out of memory a number of times. When this happens it grinds to a halt and is unusable. It is difficult even to kill the application. This happens when we use CS-Studio to run a large number of screens. This happens in two ways: * Machine operators open many (100) standalone windows * CS-Studio is kept open for long periods on beamlines. Views are opened but rarely or never closed, accumulating in part stacks We have allocated -Xmx2048m, but we may need to increase this. Has any other site encountered this problem and does anyone have any useful advice? I have never seen Eclipse crash in the same way. Thanks, Will -- This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail. Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message. Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Cs-studio-core mailing list Cs-...@li... https://lists.sourceforge.net/lists/listinfo/cs-studio-core |