bjarne

Well-Known Member
Mar 23, 2002
135
0
316
SSL on APCHE is a mess

Almost as soon as apache is started I get a cpu that maxes out the cpu (glad we have hypertread P4) and there is a root owned process in top, eting the cpu power.

Anyway I decided to rebuild apache with no SSL support, and it looks like the problems are gone. As far as the unstable stuff.

Something is wery wrong with this apache and I do belive it is relatet to ssl and some kernel stuff.

After doing killall -9 httpd every 5 min for 12 hours apache gave this error: semget: No space left on device and I had to restart the server to get it up agian.

I conclude that something ssl relatet is the problem, because it helps to recompile with no SSL, now it has been up for more then 8 hours:) and it looks good.
 
Last edited:

vibz

Member
Jan 24, 2005
10
0
151
Hi dude!!!

This is not an issue with ssl. Run the following two commands from the root shell.

ipcs |grep nobody | awk '{print $2}' >> /root/semget
for i in `cat /root/semget`; do ipcrm sem $i;done

Restart your apache.
Enjoy!!! :)

Vibz
 

netlook

Well-Known Member
Mar 25, 2004
334
0
166
vibz said:
ipcs |grep nobody | awk '{print $2}' >> /root/semget
for i in `cat /root/semget`; do ipcrm sem $i;done
What's for are those commands?
 

vibz

Member
Jan 24, 2005
10
0
151
The "commands" is a workaround to clear your shared memory without rebooting. You can find a "segmentation fault, cannot write to device" error inside your apache error_log coz ur shared mem is full. ipcs shows the share memory segments, Semaphore Arrays and message queues. The commands clear this using the "semid"s used by nobody (apache). Dats aaall.

Vibz
 

amal

Well-Known Member
Nov 22, 2003
155
0
166
India
cPanel Access Level
Root Administrator
Hi Vibz,

Any idea how to find out, the real cause of that issue? Because it's happening for me everyday... And I have to clear the semaphores owned by nobody everyday... I can write a cron for doing that.. But do you know any way to find out the root cause of the issue and thereby fix it....
 

vibz

Member
Jan 24, 2005
10
0
151
Hi amal,

I'm sorry, i dont know. Probably you'll have to escalate this to the cpanel team.

Regards,
Vibz
 

eagle

Well-Known Member
Jan 17, 2003
139
0
166
vibz said:
Hi dude!!!

This is not an issue with ssl. Run the following two commands from the root shell.

ipcs |grep nobody | awk '{print $2}' >> /root/semget
for i in `cat /root/semget`; do ipcrm sem $i;done

Restart your apache.
Enjoy!!! :)

Vibz
Thanks, but I get a syntax error near do and I don't see it. Anyone?