10.5 crash / out of memory

For help and support with issues specific to Linux/Unix
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply.

10.5 crash / out of memory

Postby moreje » Sat Mar 14, 2009 12:37 pm

hello,
PS3MS v10.5 crashes when transcoding HD mkv's using mencoder
I get a FATAL ERROR / out of memory
no problem with v10.1

any ideas?
Thanks
Jerome

[Thread-161] DEBUG 12:31:21.477 Received on socket: Host: 192.168.0.1:5001
[Thread-161] DEBUG 12:31:21.477 Received on socket: User-Agent: PLAYSTATION 3
[Thread-161] DEBUG 12:31:21.499 Received on socket: Connection: Keep-Alive
[Thread-161] DEBUG 12:31:21.500 Received on socket: Accept-Encoding: identity
[Thread-161] DEBUG 12:31:21.500 Received on socket: TimeSeekRange.dlna.org: npt=0.000-
[Thread-161] DEBUG 12:31:21.500 Received on socket: transferMode.dlna.org: Streaming
[Thread-161] INFO 12:31:21.502 HTTP: get/0$0$1$30/fb-qos1080.mkv / 0-0
[Thread-161] DEBUG 12:31:21.502 Wrote on socket: HTTP/1.1 200 OK
[Thread-161] DEBUG 12:31:21.502 Searching for objectId: 0$0$1$30 with children option: false
[Thread-161] DEBUG 12:31:21.502 Asked stream chunk [0-0] timeseek: 0.0 of fb-qos1080.mkv and player MEncoder
[Thread-161] DEBUG 12:31:21.502 Ready to Stop: false
[Thread-161] DEBUG 12:31:21.502 Wrote on socket: Content-Type: video/mpeg
[Thread-161] DEBUG 12:31:21.503 Wrote on socket: Connection: keep-alive
[Thread-161] DEBUG 12:31:21.503 Wrote on socket: Server: Linux-amd64-2.6.27-11-generic, UPnP/1.0, PMS/1.10.5
[Thread-161] DEBUG 12:31:21.503 Wrote on socket:
[Timer-2] DEBUG 12:31:21.530 Buffered Space: 38834176 bytes / inputs: 1
[Timer-2] DEBUG 12:31:23.536 Buffered Space: 32909312 bytes / inputs: 1
[Timer-2] DEBUG 12:31:25.530 Buffered Space: 28123136 bytes / inputs: 1
[Thread-135] DEBUG 12:31:26.754 freeMemory: 16318608
[Thread-135] DEBUG 12:31:26.754 totalMemory: 80019456
[Thread-135] DEBUG 12:31:26.754 maxMemory: 715849728
[Thread-135] DEBUG 12:31:26.754 Extending buffer to 524288000
[Thread-135] TRACE 12:31:27.130 FATAL ERROR: OutOfMemory / dumping stats
[Thread-135] DEBUG 12:31:27.130 freeMemory: 496205960
[Thread-135] DEBUG 12:31:27.130 totalMemory: 555089920
[Thread-135] DEBUG 12:31:27.130 maxMemory: 715849728
[Thread-10] TRACE 12:31:27.131 Sending BYEBYE...
[Thread-10] DEBUG 12:31:27.132 Setting multicast network interface: name:eth0 (eth0) index: 2 addresses:
/192.168.0.1;
Ubuntu x64 9.10 Karmic Koala
Phenom x3 - 5.5 Go RAM
1GB ethernet connection (direct PS3->PC)
moreje
 
Posts: 35
Joined: Fri Jan 23, 2009 10:15 am

Re: 10.5 crash / out of memory

Postby shagrath » Sat Mar 14, 2009 12:43 pm

reduce the transcode buffer size (512 seems too much for your install), try 400, or 300
shagrath
Project Lead
 
Posts: 2668
Joined: Wed Jan 14, 2009 1:39 pm

Re: 10.5 crash / out of memory

Postby moreje » Sat Mar 14, 2009 2:00 pm

Thanks! fixed ;)
that's OK now with 400
just for knowledge... where is the limit? I have 4Go RAM...x64 system....
thanks again
Ubuntu x64 9.10 Karmic Koala
Phenom x3 - 5.5 Go RAM
1GB ethernet connection (direct PS3->PC)
moreje
 
Posts: 35
Joined: Fri Jan 23, 2009 10:15 am

Re: 10.5 crash / out of memory

Postby shagrath » Sat Mar 14, 2009 2:06 pm

depends on the operating system, etc... sometimes Java doesn't succeed to allocate the whole memory, don't know why...
shagrath
Project Lead
 
Posts: 2668
Joined: Wed Jan 14, 2009 1:39 pm

Re: 10.5 crash / out of memory

Postby emartos » Mon Aug 03, 2009 1:16 am

Hi there!

I was having the same problem, but I think I've found a workaround to the OutOfMemory crash (Linux version). You have to edit the PMS.sh file and locate the following line:

Code: Select all
exec "$JAVA" $JAVA_OPTS -Xmx768M -Djava.encoding=UTF-8 -Djava.net.preferIPv4Stack=true -jar "$PMS_JAR" "$@"


Now you have to add -Xms256M (or the amount of memory that fits your hardware configuration). Finally, you should have the following:

Code: Select all
exec "$JAVA" $JAVA_OPTS -Xms256M -Xmx768M -Djava.encoding=UTF-8 -Djava.net.preferIPv4Stack=true -jar "$PMS_JAR" "$@"


My PMS works fine now, but now there is a great lag between video and audio. I'll be back with a solution.

Bye!
emartos
 
Posts: 1
Joined: Mon Aug 03, 2009 1:09 am


Return to Linux/Unix Support

Who is online

Users browsing this forum: No registered users and 7 guests