Forum OpenACS Q&A: Server crashes
lately I have had some server crashes on a regulary basis with a line like this at the end of the error log:
"unable to alloc 3136642 bytes"
Any idea why this happens and how to deal with it?
Is your installation dotlrn ?
unable to alloc 2463132 bytes
after restarting aolserver and opening a connection.
The SIZE value in top seems to rise past 2 GB within a few minutes and then crash the server.
I recently installed xotcl and have disabled it, along with other unused packages, to no effect. I disabled them by renaming the directory in packages.
I've tried restarting the machine. It has 1 GB RAM and 2 GB of swap. The server was running for almost 200 days without incident.
Any help would be appreciated!
ns_param mutexmeter true
ns_param stacksize [expr 128 * 8192]
ns_param maxconnections 100
ns_param maxdropped 0
ns_param maxthreads 10
ns_param minthreads 5
ns_param threadtimeout 120
AOLserver seemed to be interpreting a 9 MB publisher file as plain text, and so ran it through cat, which probably choked.
Would an upgrade to tsearch2 (I'm using OpenFTS) resolve this problem permanently?
If its running through cat, it hasn't hit the indexer yet. The indexer only accepts text so it should be converted first.
Big files will be an issue. I think looking into indexing the first signifigant part of the content makes sense, ie: first 100k or whatever.
We just had a similar issue at ]project-open[ with one server. A "delete from notifications" fixed the issue. I believe that there was one very long "notification" coming from an automatic security check or something similar.