Re: insufficient memory for the Java Runtime Environment to continue

2018-12-23 Thread John Dale
Yikes .. no matter how much memory you allocate, it'll eventually consume it? I ran into this problem a few times and I reviewed the application code looking for the cause through testing. A memory profiler can work, but I've found them to be somewhat unwieldy and difficult. Dumps can also give

Re: insufficient memory for the Java Runtime Environment to continue

2018-12-23 Thread Olaf Kock
On 22.12.18 22:58, Dhaval Jaiswal wrote: > Application built in such a way that it consum memory and hence, it's > exhaust all memory and results in crashing Java. Probably GC is not running > when it reaches to its threshold. Is there a way I can call GC explicitly > without affecting running

Re: insufficient memory for the Java Runtime Environment to continue

2018-12-22 Thread Johan Compagner
If you use large heaps you should use G1 garbage collector And if you use that then I would set the min and Max to the same values *-server -Xms13G -Xmx13G **-XX:+UseG1GC* *To fully initialize the memory at once (g1 will figure it into compartments)* Op za 22 dec. 2018 13:35 schreef Dhaval

Re: insufficient memory for the Java Runtime Environment to continue

2018-12-22 Thread Dhaval Jaiswal
Application built in such a way that it consum memory and hence, it's exhaust all memory and results in crashing Java. Probably GC is not running when it reaches to its threshold. Is there a way I can call GC explicitly without affecting running application. I believe need to identify the memory

Re: insufficient memory for the Java Runtime Environment to continue

2018-12-22 Thread Olaf Kock
On 22.12.18 20:17, Dhaval Jaiswal wrote: > System has allocated all mentioned RAM. > > I assume 13 would be fine. Adding to John's question, what I forgot earlier: Another rule of thumb is to identify the *minimum* amount of memory that the application can run with, then add a bit of headroom.

Re: insufficient memory for the Java Runtime Environment to continue

2018-12-22 Thread John Dale
Why are you requiring so much memory? On 12/22/18, Dhaval Jaiswal wrote: > System has allocated all mentioned RAM. > > I assume 13 would be fine. > > On Sat 22 Dec, 2018, 11:44 PM John Dale >> I agree with this tactic .. I do the same thing. >> >> Cheers. >> >> On 12/22/18, Olaf Kock wrote:

Re: insufficient memory for the Java Runtime Environment to continue

2018-12-22 Thread Dhaval Jaiswal
System has allocated all mentioned RAM. I assume 13 would be fine. On Sat 22 Dec, 2018, 11:44 PM John Dale I agree with this tactic .. I do the same thing. > > Cheers. > > On 12/22/18, Olaf Kock wrote: > > > > On 22.12.18 13:35, Dhaval Jaiswal wrote: > >> I am facing issue of crashing JAVA

Re: insufficient memory for the Java Runtime Environment to continue

2018-12-22 Thread John Dale
I agree with this tactic .. I do the same thing. Cheers. On 12/22/18, Olaf Kock wrote: > > On 22.12.18 13:35, Dhaval Jaiswal wrote: >> I am facing issue of crashing JAVA process and log files attached for >> the same. >> >> Server total RAM is 16 GB. >> >> catalina.sh having following setting.

Re: insufficient memory for the Java Runtime Environment to continue

2018-12-22 Thread Olaf Kock
On 22.12.18 13:35, Dhaval Jaiswal wrote: > I am facing issue of crashing JAVA process and log files attached for > the same.  > > Server total RAM is 16 GB. > > catalina.sh having following setting.  > export JAVA_MEM_OPTS="-Xms1g -Xmx15g -XX:MaxPermSize=1536m" > > Can some one help where could

Re: insufficient memory for the Java Runtime Environment to continue

2018-12-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Leon, On 12/22/18 08:19, Leon Rosenberg wrote: > You should provide at least Java version. Out of the blue you > should have at least 2Gb for the OS, so if your server is having 16 > Gb, your Xmx and MaxPermSize shouldn't be more then 14 G

Re: insufficient memory for the Java Runtime Environment to continue

2018-12-22 Thread Dhaval Jaiswal
Java version 8 On Sat 22 Dec, 2018, 6:49 PM Leon Rosenberg You should provide at least Java version. > Out of the blue you should have at least 2Gb for the OS, so if your server > is having 16 Gb, your Xmx and MaxPermSize shouldn't be more then 14 G > TOGETHER. Of course this only applies to

Re: insufficient memory for the Java Runtime Environment to continue

2018-12-22 Thread Leon Rosenberg
You should provide at least Java version. Out of the blue you should have at least 2Gb for the OS, so if your server is having 16 Gb, your Xmx and MaxPermSize shouldn't be more then 14 G TOGETHER. Of course this only applies to versions of java below 1.8, because there is no permspace in modern