[Glass] cannot allocate memory

Otto Behrens via Glass glass at lists.gemtalksystems.com
Tue Jul 7 08:35:54 PDT 2015


Hi,

We call "System class >> performOnServer:" often from our seaside
server sessions. We get an error "HostPerform failed; errno 12, Cannot
allocate memory".

This happens at the end of the day, while sessions have been running
all day, and have been quite busy.

It appears as if there is a memory leak in this function; I don't
really understand what memory it is trying to allocate here.

We're assuming the System class >> performOnServer: is the way in
GemStone to execute shell commands. Should we be using another way?

Any ideas?

Thanks
Otto

I attach a stack ouput with more details as an example.

In this example, we call pdftk to fill in the fields of a pdf document.
-------------- next part --------------
ERROR encountered at: 2015/07/02 17:44:00
'a ExternalError occurred (error 2201), reason:hostErrPerform, GemStone cannot execute "'cd /home/wonka/groupra.allangray.co.za/wonka; pdftk "/home/wonka/groupra.allangray.co.za/wonka/resources/AllanGrayConfiguration/public/Group_RA_EmployerRegistration.pdf"  fill_form ''/tmp/groupra.allangray.co.za/CooteClarksonArchitectsid85.xfdf''  output  ''/tmp/groupra.allangray.co.za/CooteClarksonArchitectsid85.pdf''  flatten   2>&1'" on the server OS shell, 'HostPerform failed; errno 12, Cannot allocate memory; command file /tmp/_home_wonka_groupra.allangray.co.za_wonka/fileWC9HL2 resultFile /tmp/_home_wonka_groupra.allangray.co.za_wonka/filegz8q8O' errno=12 rawStatus=-1 childStatus=255'
User: tvanschalkwyk
1 ExternalError (AbstractException) >> signal @2 line 47
        receiver [28247637505 sz: 15 cls: 148737 ExternalError] a ExternalError occurred (error 2201), reason:hostErrPerform, GemStone cannot execute "'cd /home/wonka/groupra.allangray.co.za/wonka; pdftk "/home/wonka/groupra.allangray.co.za/wonka/resources/AllanGrayConfiguration/public/Group_RA_EmployerRegistration.pdf"  fill_form ''/tmp/groupra.allangray.co.za/CooteClarksonArchitectsid85.xfdf''  output  ''/tmp/groupra.allangray.co.za/CooteClarksonArchitectsid85.pdf''  flatten   2>&1'" on the server OS shell, 'HostPerform failed; errno 12, Cannot allocate memory; command file /tmp/_home_wonka_groupra.allangray.co.za_wonka/fileWC9HL2 resultFile /tmp/_home_wonka_groupra.allangray.co.za_wonka/filegz8q8O' errno=12 rawStatus=-1 childStatus=255
                gsResumable [268 sz: 0 cls: 68097 Boolean] true
                gsTrappable [268 sz: 0 cls: 68097 Boolean] true
                gsNumber [17610 sz: 0 cls: 74241 SmallInteger] 2201
                currGsHandler [20 sz: 0 cls: 76289 UndefinedObject] nil
                gsStack [20 sz: 0 cls: 76289 UndefinedObject] nil
                gsReason [28247637249 sz: 14 cls: 74753 String] 'hostErrPerform'
                gsDetails [20 sz: 0 cls: 76289 UndefinedObject] nil
                tag [20 sz: 0 cls: 76289 UndefinedObject] nil
                messageText [28247636993 sz: 684 cls: 74753 String] 'a ExternalError occurred (error 2201), reason:hostErrPerform, GemStone cannot execute "''cd /home/wonka/groupra.allangray.co.za/wonka; pdftk "/home/wonka/groupra.allangray.co.za/wonka/resources/AllanGrayConfiguration/public/Group_RA_EmployerRegistration.pdf"  fill_form ''''/tmp/groupra.allangray.co.za/CooteClarksonArchitectsid85.xfdf''''  output  ''''/tmp/groupra.allangray.co.za/CooteClarksonArchitectsid85.pdf''''  flatten   2>&1''" on the server OS shell, ''HostPerform failed; errno 12, Cannot allocate memory; command file /tmp/_home_wonka_groupra.allangray.co.za_wonka/fileWC9HL2 resultFile /tmp/_home_wonka_groupra.allangray.co.za_wonka/filegz8q8O'' errno=12 rawStatus=-1 childStatus=255'
                gsArgs [28247636737 sz: 5 cls: 66817 Array] anArray( ...)
        .t1 [28247637505 sz: 15 cls: 148737 ExternalError] a ExternalError occurred (error 2201), reason:hostErrPerform, GemStone cannot execute "'cd /home/wonka/groupra.allangray.co.za/wonka; pdftk "/home/wonka/groupra.allangray.co.za/wonka/resources/AllanGrayConfiguration/public/Group_RA_EmployerRegistration.pdf"  fill_form ''/tmp/groupra.allangray.co.za/CooteClarksonArchitectsid85.xfdf''  output  ''/tmp/groupra.allangray.co.za/CooteClarksonArchitectsid85.pdf''  flatten   2>&1'" on the server OS shell, 'HostPerform failed; errno 12, Cannot allocate memory; command file /tmp/_home_wonka_groupra.allangray.co.za_wonka/fileWC9HL2 resultFile /tmp/_home_wonka_groupra.allangray.co.za_wonka/filegz8q8O' errno=12 rawStatus=-1 childStatus=255

2 String (Object) >> _error:args: @15 line 11
        receiver [28247636481 sz: 332 cls: 74753 String] 'cd /home/wonka/groupra.allangray.co.za/wonka; pdftk "/home/wonka/groupra.allangray.co.za/wonka/resources/AllanGrayConfiguration/public/Group_RA_EmployerRegistration.pdf"  fill_form ''/tmp/groupra.allangray.co.za/CooteClarksonArchitectsid85.xfdf''  output  ''/tmp/groupra.allangray.co.za/CooteClarksonArchitectsid85.pdf''  flatten   2>&1'
        errorSymbol [3410689 sz: 14 cls: 110849 Symbol] #'hostErrPerform'
        argList [28247636225 sz: 4 cls: 66817 Array] anArray( ...)
        cls [148737 sz: 19 cls: 59580673 ExternalError class] ExternalError
        mv [1232164865 sz: 3 cls: 66817 Array] anArray( ...)
        errNum [17610 sz: 0 cls: 74241 SmallInteger] 2201
        newArgList [28247636737 sz: 5 cls: 66817 Array] anArray( ...)
        .t1 [28247637505 sz: 15 cls: 148737 ExternalError] a ExternalError occurred (error 2201), reason:hostErrPerform, GemStone cannot execute "'cd /home/wonka/groupra.allangray.co.za/wonka; pdftk "/home/wonka/groupra.allangray.co.za/wonka/resources/AllanGrayConfiguration/public/Group_RA_EmployerRegistration.pdf"  fill_form ''/tmp/groupra.allangray.co.za/CooteClarksonArchitectsid85.xfdf''  output  ''/tmp/groupra.allangray.co.za/CooteClarksonArchitectsid85.pdf''  flatten   2>&1'" on the server OS shell, 'HostPerform failed; errno 12, Cannot allocate memory; command file /tmp/_home_wonka_groupra.allangray.co.za_wonka/fileWC9HL2 resultFile /tmp/_home_wonka_groupra.allangray.co.za_wonka/filegz8q8O' errno=12 rawStatus=-1 childStatus=255

3 System class >> performOnServer: @15 line 21
        receiver [76033 sz: 19 cls: 803329 System class] System
        aString [28247636481 sz: 332 cls: 74753 String] 'cd /home/wonka/groupra.allangray.co.za/wonka; pdftk "/home/wonka/groupra.allangray.co.za/wonka/resources/AllanGrayConfiguration/public/Group_RA_EmployerRegistration.pdf"  fill_form ''/tmp/groupra.allangray.co.za/CooteClarksonArchitectsid85.xfdf''  output  ''/tmp/groupra.allangray.co.za/CooteClarksonArchitectsid85.pdf''  flatten   2>&1'
        errMsg [28247635969 sz: 193 cls: 74753 String] 'HostPerform failed; errno 12, Cannot allocate memory; command file /tmp/_home_wonka_groupra.allangray.co.za_wonka/fileWC9HL2 resultFile /tmp/_home_wonka_groupra.allangray.co.za_wonka/filegz8q8O'
        errno [98 sz: 0 cls: 74241 SmallInteger] 12
        childStatus [2042 sz: 0 cls: 74241 SmallInteger] 255
        rawStatus [18446744073709551610 sz: 0 cls: 74241 SmallInteger] -1
        resultStr [20 sz: 0 cls: 76289 UndefinedObject] nil
        arr [28247635713 sz: 5 cls: 66817 Array] anArray( ...)
        .t1 [28247636481 sz: 332 cls: 74753 String] 'cd /home/wonka/groupra.allangray.co.za/wonka; pdftk "/home/wonka/groupra.allangray.co.za/wonka/resources/AllanGrayConfiguration/public/Group_RA_EmployerRegistration.pdf"  fill_form ''/tmp/groupra.allangray.co.za/CooteClarksonArchitectsid85.xfdf''  output  ''/tmp/groupra.allangray.co.za/CooteClarksonArchitectsid85.pdf''  flatten   2>&1'
        .t2 [3410689 sz: 14 cls: 110849 Symbol] #'hostErrPerform'




More information about the Glass mailing list