- changed status to resolved
"messages" page does not work, midas.log too big
Issue #54
resolved
A runaway frontend filled midas.log to 3.3GBytes and the mhttpd "programs" page broke. mhttpd is reporting this error:
16:51:17 [mhttpd,ERROR] [midas.c:1032:cm_msg_retrieve1,ERROR] Cannot malloc -777836935 bytes to read log file "/home/agdaq/online/midas.log", errno 12 (Cannot allocate memory)
[agdaq@alphagdaq online]$ ls -l midas.log -rw-r--r-- 1 agdaq alpha 3517130552 May 29 16:51 midas.log
K.O.
Comments (2)
-
-
reporter confirmed. works on 3.3GB midas.log ok. thanks. K.O.
- Log in to comment
I fixed it so that only the last 10 MB (can be changed) of the message file are returned. I found that for large message files, there is still an error that the last message will now be truncated, and the mhttp message page goes into an infinite loop. So will work on these.