[Box-Admins] Re: squeaksource.com image update
Chris Muller
asqueaker at gmail.com
Mon Oct 21 14:44:22 UTC 2013
Why is it better to snapshot in the UI process than a background process?
On Mon, Oct 21, 2013 at 7:32 AM, David T. Lewis <lewis at mail.msen.com> wrote:
> On Mon, Oct 21, 2013 at 11:56:23AM +0200, Bert Freudenberg wrote:
>> On 2013-10-19, at 14:35, "David T. Lewis" <lewis at mail.msen.com> wrote:
>>
>> > For the record, the socket leak process is:
>> >
>> > [[vmFileCount := (FileDirectory on: '/proc/', OSProcess thisOSProcess pid asString, '/fd')
>> > entries size.
>> > OSProcess trace: DateAndTime now asString, ' squeakvm has ', vmFileCount asString,
>> > ' open file descriptors'.
>> > vmFileCount > 800 ifTrue: [
>> > OSProcess trace: 'Too many open file handles, save image and exit'.
>> > "Save the image, exit and wait for the supervisory script to restart"
>> > Smalltalk snapshot: true andQuit: true].
>> > (Delay forSeconds: 3 * 3600) wait] repeat] fork name: 'the Socket leak monitor'.
>> >
>> > Dave
>>
>> Wouldn't it be better to snapshot in the UI process?
>>
>> - Bert -
>>
>
> Eeek! Thanks. I changed it to:
>
> [[vmFileCount := (FileDirectory on: '/proc/', OSProcess thisOSProcess pid asString, '/fd') entries size.
> OSProcess trace: DateAndTime now asString, ' squeakvm has ', vmFileCount asString, ' open file descriptors'.
> vmFileCount > 800 ifTrue: [
> OSProcess trace: 'Too many open file handles, save image and exit'.
> "Save the image, exit and wait for the supervisory script to restart"
> WorldState addDeferredUIMessage: [Smalltalk snapshot: true andQuit: true]].
> (Delay forSeconds: 3 * 3600) wait] repeat] fork name: 'the Socket leak monitor'.
>
> Dave
>
More information about the Box-Admins
mailing list