(no subject)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

(no subject)

Atkinson, Cathie

I noticed this too when running python syntax repeatedly.  At some point I get an error and have to close spss and restart.  The same syntax ran fine in previous versions.  I'd love to get a fix!

 


On 3/10/2010 2:49 AM, Zach Creel wrote:

I seem to have alot of memory problems in SPSS v18.0.1.  I'm wondering if
anyone can point me in the right direction.

I have a fairly long syntax file with lots of embedded Python.  When I run
this same file over and over, spss apparently grabs onto more and more
memory each time, as evidenced by the spss process in task manager.
Eventually, spss will just hang in the middle of processing.  My machine has
4 Gig RAM and I get the same problems whether on Windows Vista or 7.

Is it possible there's something I need to do in either syntax or python to
force spss to release memory?  Or maybe it's some kind of operating system
problem?  Thanks for any clues.

Zach

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD

 

Reply | Threaded
Open this post in threaded view
|

Re:

Jon K Peck

Without knowing exactly what you are doing, it's hard to diagnose this.  As a start, though, you should be aware that an SPSS Statistics session that includes Python will appear as three processes in the Task Manager.

The spssengine process is the SPSS Processor, i.e., the backend, where data and computation live.
The paswstat process is the frontend, where the Viewer, Data Editor, dialog, and menus live.
The StartPython process is where the Python code and data live.

So watch what is growing, and try experiments such as closing the Viewer window so that the output is removed from memory.  Note also that if you have long-running OMS requests, they will be accumulating copies of output in memory until the OMSEND command occurs.  If you have large data structures in your Python code, you may want to delete them explicitly at the end of each program, since they carry over from one program to another in the same session.

HTH,
Jon Peck
SPSS, an IBM Company
[hidden email]
312-651-3435



From: "Atkinson, Cathie" <[hidden email]>
To: [hidden email]
Date: 03/19/2010 12:26 PM
Subject: [SPSSX-L]
Sent by: "SPSSX(r) Discussion" <[hidden email]>





I noticed this too when running python syntax repeatedly.  At some point I get an error and have to close spss and restart.  The same syntax ran fine in previous versions.  I'd love to get a fix!

 

On 3/10/2010 2:49 AM, Zach Creel wrote:

I seem to have alot of memory problems in SPSS v18.0.1.  I'm wondering if

anyone can point me in the right direction.



I have a fairly long syntax file with lots of embedded Python.  When I run

this same file over and over, spss apparently grabs onto more and more

memory each time, as evidenced by the spss process in task manager.

Eventually, spss will just hang in the middle of processing.  My machine has

4 Gig RAM and I get the same problems whether on Windows Vista or 7.



Is it possible there's something I need to do in either syntax or python to

force spss to release memory?  Or maybe it's some kind of operating system

problem?  Thanks for any clues.



Zach



=====================

To manage your subscription to SPSSX-L, send a message to

[hidden email] (not to SPSSX-L), with no body text except the

command. To leave the list, send the command

SIGNOFF SPSSX-L

For a list of commands to manage subscriptions, send the command

INFO REFCARD

 

Reply | Threaded
Open this post in threaded view
|

python and memory problems

Matthew Pirritano
In reply to this post by Atkinson, Cathie
I've had this issue as well. I find that my temp folder is filling up with python files. If a wait a bit and then delete them the program runs. I haven't tried to fix this but I think it may have to do with writing code to delete those temp files when it's done with them?
 
Matthew Pirritano, Ph.D.
Email: [hidden email]



From: "Atkinson, Cathie" <[hidden email]>
To: [hidden email]
Sent: Fri, March 19, 2010 9:02:15 AM
Subject:

I noticed this too when running python syntax repeatedly.  At some point I get an error and have to close spss and restart.  The same syntax ran fine in previous versions.  I'd love to get a fix!

 


On 3/10/2010 2:49 AM, Zach Creel wrote:

I seem to have alot of memory problems in SPSS v18.0.1.  I'm wondering if
anyone can point me in the right direction.

I have a fairly long syntax file with lots of embedded Python.  When I run
this same file over and over, spss apparently grabs onto more and more
memory each time, as evidenced by the spss process in task manager.
Eventually, spss will just hang in the middle of processing.  My machine has
4 Gig RAM and I get the same problems whether on Windows Vista or 7.

Is it possible there's something I need to do in either syntax or python to
force spss to release memory?  Or maybe it's some kind of operating system
problem?  Thanks for any clues.

Zach

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD