cancel
Showing results for 
Search instead for 
Did you mean: 

Limit soffice.bin memory

dranakan
Champ on-the-rise
Champ on-the-rise
Hello,

I get problem with soffice on one server. It has takes all memory (and the server begin to swaps). So I reset the server…
I don't know at this time which document give problems…

Can I set the max memory to soffice.bin to avoid this situation ?

Alfresco 4.0D, RHEL 5.6.
"./soffice.bin -h" : OpenOffice.org 3.2  320m12(Build:9483)

### External executable locations ###
ooo.exe=/opt/Alfresco/openoffice/program/soffice.bin
ooo.enabled=true
ooo.port=8100
ooo.port=8100
img.root=/opt/Alfresco/common
img.dyn=${img.root}/lib
img.exe=${img.root}/bin/convert
swf.exe=/opt/Alfresco/common/bin/pdf2swf
jodconverter.enabled=false
jodconverter.officeHome=/opt/Alfresco/openoffice
jodconverter.portNumbers=8100
2 REPLIES 2

dranakan
Champ on-the-rise
Champ on-the-rise
My problem comes from a word file. This file has a field and a picture inside this field :  Sample : http://speedy.sh/2ngXa/BigMemory.doc

If you test it, have a console connected to the server ready to kill (pkill soffice.bin).
You can restart the soffice.bin using :

/opt/alfresco-4.0.d/openoffice/program/soffice.bin "-accept=socket,host=127.0.0.1,port=8100;urp;StarOffice.ServiceManager -env:UserInstallation=file:///opt/alfresco-4.0.d/alf_data/oouser" -nologo -headless -nofirststartwizard -nocrashrep -norestore&

dranakan
Champ on-the-rise
Champ on-the-rise
Can I set the max memory to soffice.bin to avoid this situation ?
It will be possible with prlimit (http://blog.stgolabs.net/2011/10/prlimit-control-resource-limits.html) but need a recent kernel (kernel 2.6.36)

The preview of the document is ok using LibreOffice (3.6.0).