Personal tools
You are here: Home Forum Use Salome without gui called from python: memory problems

Salome without gui called from python: memory problems

Up to Use

Salome without gui called from python: memory problems

Posted by Chaz at September 20. 2012

Hello,

I am running salome from a python script using:

os.system('~/salome/appli_V6_4_0/./runAppli -t -u '+casePath+ 'build.py')

Salome builds geometry just fine, but leaves a process in memory called "Salome_Container".  Each are > 100 MB in size. These are created with each call, and after a while they fill up the memory and swap, resulting in the system slowing to a halt.  Does anyone know why these are left after Salome finishes?

I'm running V6.4 in Ubuntu 11.04.

Thanks

Re: Salome without gui called from python: memory problems

Posted by Saint Michael at September 20. 2012

Hello

Try this

os.system('~/salome/appli_V6_4_0/./runAppli -t -u '+casePath+ 'build.py; killSalome.py')

St.Michael

Re: Salome without gui called from python: memory problems

Posted by Chaz at September 21. 2012

Thank you, that works fine.  I got it to run with the following:

 

    os.system('~/salome/appli_V6_4_0/./runAppli -t -u '+casePath+ 'build.py')  # launch salome
    os.system('~/salome/appli_V6_4_0/bin/salome/./killSalome.py')  # kill salome

 

Thanks!

Powered by Ploneboard
Document Actions