[Vm-dev] unix SqueakSource socket 'too many open files' problem

tim Rowledge tim at rowledge.org
Tue Mar 2 04:08:31 UTC 2021

> On 2021-02-26, at 10:32 PM, K K Subbu <kksubbu.ml at gmail.com> wrote:
> On 27/02/21 2:42 am, David T. Lewis wrote:
>> Here is what I saw on the squeaksource.com server a few minutes ago:
>>   squeaksourcecom at dan:~$ ls -l /proc/16147/fd
> The socket count can be generated directly with:
> $ ls -l /proc/$(pgrep squeak)/fd | grep -c socket:

That's pretty neat, thanks.

> This can then be visually graphed every, say, 3600s with:
> bars='======================================================+';
> while true; do
> 	echo $bars | cut -c 1-$(ls -l /proc/$(pgrep squeak)/fd | grep -c socket:)
> 	sleep 3600
> done

Goodness; shell script bargraphs. Whatever next?

> If this shows a monotonic growth, then a leak can be suspected.

I'm pretty sure there is a slow leak; but slow. It's climbed from 19 to 30 over three days

tim Rowledge; tim at rowledge.org; 
"You're a ghost driving a meat-coated skeleton made from stardust, 
riding a rock, hurtling through space. Fear nothing"

More information about the Vm-dev mailing list