meskibob wrote:Problem: During remuxed or transcoded video playback your video either skips sections of the movie (forward or back) or the video crashes entirely. When you check the debug.log file, you find the phrase "OutOfMemory".
Solution:
PMS is exceeding the available Java heap memory allocated when PMS starts. The newer (currently beta) versions of PMS handle this error by half-ing the transcode buffer (sometimes leading to skips) while older versions just let the video crash.
The heap is the sum of the transcode buffer memory plus all of the overhead memory (the actual PMS application, media library, iTunes support, Radio plugin, etc), and the overhead memory can grow quite a bit if the "extra" features (iTunes, Radio plugin, etc) are enabled.
The quick solution is just to decrease the size of the transcode buffer or disable some of the extra features. How much you need to decrease or what features depends on your system and may require some basic guess and check.
However, if you need the larger transcode buffer (better playback) or the extra features (or just want to better manage the memory on your system), then you need to increase the available heap size.Note: this will obviously take up more of your RAM, so make sure you set a value appropriate for your system
- Locate the PMS.bat (Windows) or PMS.sh (Unix/Linux) file (http://ps3mediaserver.org/forum/viewtop ... 731#p32731) and open it in a text editor
- Modify the "-Xmx768M" value - http://blog.paulgu.com/2008/07/19/6-com ... heap-size/
- Save and close the file
- Launch PMS using that file
Example values (courtesy of Coltaine79): 32-bit JVM on a x64 Win7 machine with 4+ GB of RAM can safely use heapsize values of 1536 with a 400MB PMS buffer and a few of the larger plugins enabled.
How to Change the Heap Size If Installed as a Windows Service: (thanks lightglitch)
- Locate the wrapper.conf (Windows) at win32\service
- Modify the line:
- Code: Select all
# Maximum Java Heap Size (in MB)
wrapper.java.maxmemory=768- Save and close the file
- Launch PMS using the service
I can confirm that settings heap size to 2gig and launching via the .bat file worked for me
