<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:'times new roman', 'new york', times, serif;font-size:10pt"><div>Thanks Levente. &nbsp;Unfortunately it did not work:</div><div><br></div><div><div>./lib/squeak/3.9-7/squeak: /lib/libc.so.6: version `GLIBC_2.11' not found (required by ./lib/squeak/3.9-7/squeak)</div></div><div><br></div><div>Rob</div><div style="font-family:times new roman, new york, times, serif;font-size:10pt"><br><div style="font-family:arial, helvetica, sans-serif;font-size:12pt"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Levente Uzonyi &lt;leves@elte.hu&gt;<br><b><span style="font-weight: bold;">To:</span></b> The general-purpose Squeak developers list &lt;squeak-dev@lists.squeakfoundation.org&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Tue, July 13, 2010 3:21:43 PM<br><b><span style="font-weight:
 bold;">Subject:</span></b> Re: Cog on linux (was: Re: [squeak-dev] Re: UI lockup in Squeak 4.1)<br></font><br>On Tue, 13 Jul 2010, Rob Withers wrote:<br><br>&gt; --------------------------------------------------<br>&gt; From: "Levente Uzonyi" &lt;<a ymailto="mailto:leves@elte.hu" href="mailto:leves@elte.hu">leves@elte.hu</a>&gt;<br>&gt; Sent: Tuesday, July 13, 2010 12:46 PM<br>&gt; To: "The general-purpose Squeak developers list" &lt;<a ymailto="mailto:squeak-dev@lists.squeakfoundation.org" href="mailto:squeak-dev@lists.squeakfoundation.org">squeak-dev@lists.squeakfoundation.org</a>&gt;<br>&gt; Subject: Cog on linux (was: Re: [squeak-dev] Re: UI lockup in Squeak 4.1)<br>&gt; <br>&gt;&gt; On Tue, 13 Jul 2010, Rob Withers wrote:<br>&gt;&gt; <br>&gt;&gt;&gt; <br>&gt;&gt;&gt; --------------------------------------------------<br>&gt;&gt;&gt; From: "Andreas Raab" &lt;<a ymailto="mailto:andreas.raab@gmx.de"
 href="mailto:andreas.raab@gmx.de">andreas.raab@gmx.de</a>&gt;<br>&gt;&gt;&gt; Sent: Tuesday, July 13, 2010 11:29 AM<br>&gt;&gt;&gt; To: "The general-purpose Squeak developers list" &lt;<a ymailto="mailto:squeak-dev@lists.squeakfoundation.org" href="mailto:squeak-dev@lists.squeakfoundation.org">squeak-dev@lists.squeakfoundation.org</a>&gt;<br>&gt;&gt;&gt; Subject: [squeak-dev] Re: UI lockup in Squeak 4.1<br>&gt;&gt;&gt; <br>&gt;&gt;&gt;&gt; On 7/13/2010 6:39 AM, Rob Withers wrote:<br>&gt;&gt;&gt;&gt;&gt; The low-space watcher is running, at least before the problem starts. I<br>&gt;&gt;&gt;&gt;&gt; do eventually run out of memory, but the uninterruptable state happens<br>&gt;&gt;&gt;&gt;&gt; before this.<br>&gt;&gt;&gt;&gt; <br>&gt;&gt;&gt;&gt; In which case you want to do the following:<br>&gt;&gt;&gt;&gt; * Launch your app and wait until it's in the "growing state"<br>&gt;&gt;&gt;&gt; * Hit F2 and from the VM's preference menu choose "Debug" and then
 "Print all processes"<br>&gt;&gt;&gt;&gt; <br>&gt;&gt;&gt;&gt; This will dump a list of all the call stacks of all processes. One of them is the culprit consuming memory and you'll probably be able to tell quickly from just looking at it (if not, you can email the output here but it typically takes a domain expert to understand what's going wrong).<br>&gt;&gt;&gt;&gt; <br>&gt;&gt;&gt; <br>&gt;&gt;&gt; Thanks for this pointer, Andreas.<br>&gt;&gt;&gt; <br>&gt;&gt;&gt; This time it was a Cog VM which spasmed, which I use for my client (Squeak 4.1 for server for use with linux vm - I have no ability to compile a linux Cog vm:&nbsp; would love if someone posted one that could be launched headless for my webhost).<br>&gt;&gt; <br>&gt;&gt; Cog works, but i think you're trying to use the -headless switch, which (is deprecated) and tells the vm to use the X11 display, but with no window. Servers usually don't have X11, so it won't work. You better use
 -vm-display-null (and -vm-sound-null). Try squeak --help for further useful options (like tuning Cog).<br>&gt;&gt; <br>&gt; <br>&gt; I am trying to use the -headless switch.&nbsp; Good to know it is deprecated.&nbsp; So you happen to have a Cog for linux binary (version 17 - 20), which I could use?<br><br>I have one, but I'm not sure it will work on your server. You can find it here: <a href="http://leves.web.elte.hu/squeak/cog17.tar.gz" target="_blank">http://leves.web.elte.hu/squeak/cog17.tar.gz</a> . It's built on ubuntu 10.04 and is optimized for core2.<br><br><br>Levente<br><br>&gt; <br>&gt; Thanks,<br>&gt; Rob<br>&gt; <br>&gt;&gt; <br>&gt;&gt; Levente<br>&gt;&gt; <br>&gt;&gt;&gt; <br>&gt;&gt;&gt; It started running at 100% and I did your F2 -&gt; Debug Options -&gt; Print all processes.&nbsp; It started dumping a LOT to the Debug Console, then it froze, still at 100%, but no increase in memory now and it went (Not Responding) and greyed out the
 window.<br>&gt;&gt;&gt; <br>&gt;&gt;&gt; Luckily, I was able to see enough of the stack that was causing problems. It is infinitely looping in this method:<br>&gt;&gt;&gt; <br>&gt;&gt;&gt; LanguageEnvironment class&gt;&gt;#localeID: localeID<br>&gt;&gt;&gt; ^self knownEnvironments at: localeID ifAbsent: [self localeID: (LocaleID isoLanguage: 'en')]<br>&gt;&gt;&gt; <br>&gt;&gt;&gt; This has nothing to do with my code, except I must be calling something that enters this loop.&nbsp; It happens in both Cog (Windows) and Squeak4.1 (Linux &lt;headless&gt; and Windows).<br>&gt;&gt;&gt; <br>&gt;&gt;&gt; Not sure how to fix this.<br>&gt;&gt;&gt; <br>&gt;&gt;&gt; Rob<br>&gt;&gt;&gt; <br>&gt;&gt;&gt;&gt; Cheers,<br>&gt;&gt;&gt;&gt;&nbsp;  - Andreas<br>&gt;&gt;&gt;&gt; <br>&gt;&gt;&gt; <br>&gt;&gt;&gt; <br>&gt;&gt; <br>&gt; <br>&gt; <br><br></div></div><div style="position:fixed"></div>


</div></body></html>