JVM memory increase #5043
-
How to increase the JVM memory for Ant Media Server? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hello, To increase JVM memory, you need to edit and add below property under
After saving the file, run below commands
|
Beta Was this translation helpful? Give feedback.
-
Hi @mann9211 I apologize for the late response. I needed to make some changes to set the -Xms and -Xmx sizes in the Dockerfile and start.sh file. These changes will be included in the next release, but you can run it with some modifications. 1. Download the Ant Media Server zip file and place the new start.sh file inside it, then compress it again into a zip file. 2. Adjust the If you need further assistance, don't hesitate to reach out. |
Beta Was this translation helpful? Give feedback.
Hello,
By default, the JVM memory is 1/4th of the total memory.
To increase JVM memory, you need to edit and add below property under
/etc/systemd/system/antmedia.service
file.Environment=JVM_MEMORY_OPTIONS=-Xmx4g
(This is for 4GB JVM memory. Please change the value as per your requirement)After saving the file, run below commands