Exception in thread "Thread-1252" java.lang.OutOfMemoryError: Java heap space
at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:57)
at java.nio.ByteBuffer.allocate(ByteBuffer.java:329)
at com.gohigh.broadcast.server.MulticastBroadcast$PlayThread.func_startPlayAudio(MulticastBroadcast.java:799)
at com.gohigh.broadcast.server.MulticastBroadcast$PlayThread.run(MulticastBroadcast.java:762)
JConsole will fail with a remote connection server under windows, this is a bug JConsole of. Solution: Modify catalina.sh file in the directory tomcat / bin directory, read as follows:
. $ Var _must_ be set to either true or false at # OS specific support under this add the following contents:
JAVA_OPTS="$JAVA_OPTS -server -Xms512m -Xmx512m -XX:MaxPermSize=128m
-Djava.rmi.server.hostname=192.216.3.145 -Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=20066 -Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate = false "to save restart tomcat.
Where 192.216.3.145 is the server address.
Can refer http://www.51testing.com/html/38/113838-132703.html