Modify

Opened 7 years ago

Last modified 7 years ago

#63 assigned defect

pbs_python-4.6.0 memory leak

Reported by: aroudgar@… Owned by: bas
Priority: major Milestone:
Component: pbs Version: 4.6.0
Keywords: Cc:

Description (last modified by bas)

Hi,

I am using pbs_python-4.6.0 with torque-5.1.1.2. We found a memory leak for this module. Simply run the following program and hopefully you can reproduce this issue. It gradually takes more and more memory during the run until it takes all available physical memory of our server and crashes.

We also used torque-5.1.0 but the result is the same. Any suggestion or advice would be gratefully appreciated.

import pbs
import time
server_name = pbs.pbs_default()
print "Sername name",server_name
c = pbs.pbs_connect(server_name)
attropl = pbs.new_attropl(1)
attropl[0].name  = pbs.ATTR_N
attropl[0].value = 'test'
job_id = pbs.pbs_submit(c, attropl, 'A1.tsk', '', 'NULL')
e, e_txt = pbs.error()
if e:
     print e,e_txt
print job_id
pbs.pbs_disconnect( c )
j=0
while 1:
     time.sleep( 1 )
     j=j+1
     if j >= 200:
       break
     c = pbs.pbs_connect(server_name)
     stat_attrl = pbs.new_attrl(3)
     stat_attrl[0].name = pbs.ATTR_state
     stat_attrl[1].name = pbs.ATTR_used
     stat_attrl[2].name = pbs.ATTR_exitstat
     jobs = pbs.pbs_statjob( c, None, stat_attrl, None )
     pbs.pbs_disconnect( c )

Cheers, Ata

Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by bas

  • Description modified (diff)
  • Status changed from new to assigned

I will test it thanks for the report

Add Comment

Modify Ticket

Change Properties
Action
as assigned The owner will remain bas.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from bas to the specified user. Next status will be 'new'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.