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?