Heap and RAM

2014-04-14 Thread John M Bliss
Here's a strange one: We have one process that consumes a LOT of RAM. (It parses a huge XML file.) It usually runs with no problem. Sometimes, it errors-out with a CF out of Java heap space error. Not most days...just sometimes. Last week, we added 2 GB of RAM to the server to bring the total

Re: Heap and RAM

2014-04-14 Thread Dave Watts
We have one process that consumes a LOT of RAM. (It parses a huge XML file.) It usually runs with no problem. Sometimes, it errors-out with a CF out of Java heap space error. Not most days...just sometimes. Last week, we added 2 GB of RAM to the server to bring the total up to 4 GB and I

Re: Heap and RAM

2014-04-14 Thread John M Bliss
Do you have specified sizes for the young and perm generations? If not, you might want to set them. No. How do I do that? On Mon, Apr 14, 2014 at 9:21 AM, Dave Watts dwa...@figleaf.com wrote: We have one process that consumes a LOT of RAM. (It parses a huge XML file.) It usually runs

Re: Heap and RAM

2014-04-14 Thread Dave Watts
Do you have specified sizes for the young and perm generations? If not, you might want to set them. No. How do I do that? More switches in jvm.config. If I recall correctly: -XX:NewSize= -XX:MaxNewSize= -XX:PermSize= -XX:MaxPermSize= That said, I'd recommend that you don't just plug

Re: Heap and RAM

2014-04-14 Thread Money Pit
Along the lines of Dave's original recommendation, here is a big leg up on using StAX (not a spelling error... StAX = same idea as SAX to make long story short) http://jochem.vandieten.net/tag/stax/ The thread Jochem is referring to in his post was mine, and I used his code and example to give