1
votes

First I a ran jmeter with tomcat server on an 8Gb virtual machine in GUI and non-GUI mode but I got the error for 500 users

Caused by: java.net.SocketExecption: Connection reset by peer: Socket write error 

Now I have taken the tomcat server to a 16Gb dedicated system to run jmeter for 400 users in GUI mode I am getting this error:

Uncaught exception:java.lang.OutofmemoryError: Java heap space/ GC overhead limit exceeds even after changing the heap size in jmeter.sh file, jmeter.file and windows batch file

What could be causing this problem?

1
How much memory is allocated to Tomcat?Iske
500MB is allocatedsusmitha
And for JMeter? Sorry I didn't asked in prevouse commet.Iske
Which process is throwing the errors? Jmeter or tomcat?piet.t
1.28gb for jmeter and while running jmeter through tomacat server error is comingsusmitha

1 Answers

1
votes

As per Java Garbage Collection handbook

The java.lang.OutOfMemoryError: GC overhead limit exceeded error is the JVM’s way of signalling that your application spends too much time doing garbage collection with too little result. By default the JVM is configured to throw this error if it spends more than 98% of the total time doing GC and when after the GC only less than 2% of the heap is recovered

Try out the following settings: