<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div></div>
<div>If you have processes that exit „unexpectedly“ you can try to attach a debugger like lldb to the process. The debugger will automatically halt on exceptions like segmentation faults and such. You can also add breakpoints on „exit“ in order to see if something
 tells the app to quit. Or add a breakpoint at the end of „main“ to see if the app just thinks it can exit because there’s nothing more to do. </div>
<div><br>
</div>
<div>In addition to that you can of course add breakpoints in the image. But no idea where in Pharo you can add breakpoints. In VisualWorks I’d add breakpoints in the SubSystem classes in #tearDown where code is run when the image quits. </div>
<div><br>
</div>
<div>You can also try adding a breakpoint to ObjectMemory quit. </div>
<div><br>
</div>
<div>Karsten</div>
<div>
<div><br>
</div>
<div><br>
<br>
<div class="gmail_signature">
<div>— </div>
<div><br>
<span style="white-space: pre-wrap; font-family: -apple-system; font-size: 14px;">Georg Heeg eK</span></div>
<div>
<div class="gmail_signature amz_quote_hidden" style="font-family: -apple-system; font-size: 14px;">
<pre style="white-space: pre-wrap; word-wrap: break-word;"><a href="x-apple-data-detectors://0" dir="ltr" x-apple-data-detectors="true" x-apple-data-detectors-type="address" x-apple-data-detectors-result="0" style="color: currentcolor; text-decoration-color: rgba(128, 128, 128, 0.38);">Wallstraße 22
06366 Köthen</a>

Tel.: <a href="tel:03496/214328" dir="ltr" x-apple-data-detectors="true" x-apple-data-detectors-type="telephone" x-apple-data-detectors-result="1">03496/214328</a>
FAX: <a href="tel:03496/214712" dir="ltr" x-apple-data-detectors="true" x-apple-data-detectors-type="telephone" x-apple-data-detectors-result="2">03496/214712</a>
Amtsgericht Dortmund HRA 12812</pre>
<div><br>
</div>
</div>
</div>
</div>
<p class="gmail_quote" style="color:#000;">Am 17. Juli 2021 um 11:38:18, David Pennington (<a href="mailto:david@lhdavid.co.uk">david@lhdavid.co.uk</a>) schrieb:</p>
<blockquote type="cite" class="gmail_quote">
<div>
<div><span>I have had long discussions on Diascord but to no avail. Perhaps a new statement of the problem might help.<br>
<br>
I have a Pharo 9.0, MacOs M1 VM install where I run a Seaside app for my local scale plastic model club. The club as only about 16 members so the traffic is extremely light with most days the only such being search bots.<br>
<br>
The pages are mostly designed to display photos of member’s models. The images are held on the server path. The data that makes up the pages is held in my own (what I call) TinyKV (Key Value database). This database uses the Pharo Filesystem to save and retrieve
 JSON text files.<br>
<br>
The Pharo image doesn’t run for more than about 10 hours when it just disappears leaving no crash log or debug files. I have checked the database software and all files are opened and closed correctly so there are no hanging file handles (unless the underlying
 code doesn’t clean up but that’s a guess).<br>
<br>
The Pharo image is running on a brand new 8GB M1 MacMini and is the only code running on that machine.<br>
<br>
To test out my code, I recently ran what could be seen as a “Denial of Service” attack on my own web site. The following is the code that I ran on my M1 MacBookAir under Pharo 9/M1 VM.<br>
<br>
| response content headers contentList|<br>
Transcript show: Time now printString; cr.<br>
contentList := OrderedCollection new.<br>
1 to: 2000 do: [ : i |<br>
response := ZnClient new<br>
url: 'http://www.ipms-clacton.org.uk:8080/CNWHome';<br>
get;<br>
response.<br>
response := ZnClient new<br>
url: 'http://www.ipms-clacton.org.uk:8080/CNWShowOneImage?ab?022020001.jpg';<br>
get;<br>
response.<br>
<br>
contentList add: response contents.<br>
].<br>
<br>
Transcript show: Time now printString; cr.<br>
^ contentList<br>
<br>
This hit the website with 2000 non-stop requests for the home page and for one of the pages that gets its data from the database (where “022020001.jpg” is a JSON file whose content is<br>
"{"dateOfRecord" : ""owner" : "ab","text" : "1-72 Scale Airfix Lancaster BIII converted to Aries of EANS - Airfix (first mould) with M&E Lancastrian Conversion","imagePath" : "022020001.jpg”}”<br>
<br>
I have also tried this code with 250 millisecond wait.<br>
<br>
The server accepts all of these requests and even responds to other requests whilst this is happening so I can see nothing wrong with my code, be it the Seaside or the database.<br>
<br>
I have run this code on a variety of machines under 8.0 and 9.0. I have run it under VAST on Windows 10 and Windows 2012 Server in addition to on the Mac. I have the same problem under 8.0 as 9.0 no matter which VM I use.<br>
<br>
What do I do next?<br>
_______________________________________________<br>
seaside mailing list<br>
seaside@lists.squeakfoundation.org<br>
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br>
</span></div>
</div>
</blockquote>
</div>
</div>
</body>
</html>