Open logsol opened 9 years ago
we found the occurance of CHECK_EQ function in the ../src/platform-linux.cc script inside V8.
int result = pthread_create(&data_->thread_, attr_ptr, ThreadEntry, this);
CHECK_EQ(0, result);
ASSERT(data_->thread_ != kNoThread);
11 means: The system lacked the necessary resources to create another thread, or the system-imposed limit on the total number of threads in a process PTHREAD_THREADS_MAX would be exceeded (http://stackoverflow.com/questions/7038586/return-code-from-pthread-create-is-11)
So far we added a cronjob, that counts the number or threads of chuck and of the system every hour, so that we can see if at some point there really are too many threads open (see /home/jeena/count-threads.log)
#!/bin/sh
SERVERS=`ps axH | grep server | grep -v grep | wc -l`
CLIENTS=`ps axH | grep server | grep -v grep | wc -l`
THREADS=`ps axH | wc -l`
DATE=`date`
echo "$DATE:\t$SERVERS\t$CLIENTS\t$THREADS" >> /home/jeena/count-threads.log
Under Alpha 2 this happened just after you joined a room.
After a while of running on the server, the application breaks.
I googled "Fatal error in ../src/platform-linux.cc, line 782" and found that it means: "That's V8 aborting because you hit RLIMIT_NPROC (ulimit -u) or the system-wide process/thread limit."
We should look into why this is happening, if it is a misconfiguration of the server or if we are somehow creating lots of threads. Maybe run it on a different server to see, if it reoccurs.
I don't know if the other errors have anything to do with this. it looks like a socket issue, maybe the connection is lost or something?
Here is the complete error log: