<div dir="ltr"><div>This has just starting happening to one of our sites. While I can recreate a server crash by holding down the enter key on certain pages I am not certain this is the issue. When holding down the enter key and forcing a crash I can see the apache logs showing multiple posts. The kernel log shows the end result of a server crash and OOM starts picking off processes, as expected. <br>
However, when the event happens in the wild, so to speak, there isn't anything unusual about the apache logs. The syslog show the details below suggesting <a href="http://opac-main.pl">opac-main.pl</a> is the culprit but I am struggling to find any form that posts to <a href="http://opac-main.pl">opac-main.pl</a> in order to cause multipl form submissions. <br>
<br>/var/log/syslog.1:Oct  1 11:49:26 srv1 kernel: <a href="http://opac-main.pl">opac-main.pl</a> invoked oom-killer: gfp_mask=0x201da, order=0, oom_adj=0, oom_score_adj=0<br>/var/log/syslog.1:Oct  1 11:49:26 srv1 kernel: [<c10a3408>] oom_kill_process+0x68/0x220<br>
/var/log/syslog.1:Oct  1 11:49:26 srv1 kernel: Out of memory: Kill process 6774 (mysqld) score 42 or sacrifice child<br>/var/log/syslog.1:Oct  1 11:49:26 srv1 kernel: Killed process 6774 (mysqld) total-vm:335720kB, anon-rss:183608kB, file-rss:0kB<br>
/var/log/syslog.1:Oct  1 11:49:26 srv1 kernel: init: mysql main process (6774) killed by KILL signal<br><br><br></div><div>Regards<br>Barry <br></div><div><br></div><div><br><div class="gmail_extra"><br><br><div class="gmail_quote">
On Sat, Sep 28, 2013 at 6:16 AM, Robin Sheat <span dir="ltr"><<a href="mailto:robin@catalyst.net.nz" target="_blank">robin@catalyst.net.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">op 28-09-13 07:45, Galen Charlton schreef:<br>
> Adapting a JavaScript technique [1] to disable multiple form submission<br>
> prevented holding down on the enter key from spamming patron searches<br>
> for me.  Of course, that's not a bulletproof technique for various<br>
> reasons, but something like it should probably be part of Koha's toolkit.<br>
<br>
I'm not completely convinced that it's someone holding down enter on the<br>
search form. However, if it is, or if it's something that has that<br>
effect, blocking multiple submits seems like a good defensive approach<br>
anyway.<br>
<span><font color="#888888"><br>
Robin.<br>
<br>
<br>
</font></span><br>_______________________________________________<br>
Koha-devel mailing list<br>
<a href="mailto:Koha-devel@lists.koha-community.org" target="_blank">Koha-devel@lists.koha-community.org</a><br>
<a href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" target="_blank">http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a><br>
website : <a href="http://www.koha-community.org/" target="_blank">http://www.koha-community.org/</a><br>
git : <a href="http://git.koha-community.org/" target="_blank">http://git.koha-community.org/</a><br>
bugs : <a href="http://bugs.koha-community.org/" target="_blank">http://bugs.koha-community.org/</a><br></blockquote></div><br></div></div></div>