2017-05-05 120 views
1

首先,我一跑的JMeter與Tomcat服務器8GB的虛擬機上的GUI和非GUI模式,但我得到了500個用戶內存不足的錯誤:Java堆空間在JMeter的未來

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

錯誤現在,我已經採取了Tomcat服務器16GB的專用系統,爲400個用戶在GUI模式下,我得到這個錯誤運行JMeter的:

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 

什麼導致這個問題呢?

+0

給Tomcat分配多少內存? –

+0

500MB分配 – susmitha

+0

而對於JMeter?對不起,我沒有問在prevouse commet。 –

回答

1

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

試試以下設置: