简体   繁体   中英

What actually is “java.lang.OutOfMemoryError: Java heap space” and how can i increase the Memory for Java?

Actually i am running Wowza Media Server on CentOS v6.3 64-bit Linux. Then it used to be suddenly stopped in some days and whenever i check the logs, i always see:

java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space

If i have to increase the memory rooms for Java:

  • how can i simply do it please?
  • have 72GB in my Dedicated Server, and 60GB is always free, can i give all 60GB to Java like that please?

您可以使用 -Xms 和 -Xmx 命令行参数更改分配给 JVM 使用的内存量。

你可以通过在Wowza的bin目录下的setenv.sh文件中设置-Xms和Xmx参数来调整内存使用。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM