1
nem2k2
Apache processes running for long times?
  • 2004/12/31 21:56

  • nem2k2

  • Just popping in

  • Posts: 14

  • Since: 2003/9/18


I'm not sure if this is a XOOPs problem or not, but if it isn't hopefully there are some apache gurus here that can help :)

My site (running XOOPs 2.0.5.1 with some modifications, and the IPBoard module integrated by Koudanshi v1.23) has apache processes running for very long time periods - some are still running for over 6 hours! The processes are still using CPU time so the performance of the site gets worse and worse. I've talked to my host about it and they're not sure, the only solution they could offer for now is to reboot the webserver once a day to kill off the processes.

Any ideas what would be causing these processes to be running for so long?

2
DonXoop
Re: Apache processes running for long times?

So many reasons that could be the cause. Your set-up is out of date and modified enough to be a possible problem and not XOOPS specific.

You should check what the server is running. A PHP file with:


might tell you more of the story. first thing to check besides the versions is if PHP is running as CGI or Module. A CGI PHP can eat a lot of processes.

You said "reboot" the web server? Is that a Windoze server? If that is the fix than you have all kinds of problems at the box.

3
nem2k2
Re: Apache processes running for long times?
  • 2005/1/1 3:02

  • nem2k2

  • Just popping in

  • Posts: 14

  • Since: 2003/9/18


By "reboot the webserver" I meant shut down and restart apache, sorry. And it's a Linux server.

I keep meaning to update the XOOPs core but it's a pain when I've done modifications to get it looking & behaving exactly how I want it to :(

Under 'Loaded Modules' in the apache section of phpinfo it has mod_php4 so I assume PHP is running as a module?

4
DonXoop
Re: Apache processes running for long times?

Check the line near the top "Server API" . Does it say "Apache xxx Handler" or "CGI"?

Versions of Apache, PHP, MySQL, MySQl libraries, etc might help.

5
nem2k2
Re: Apache processes running for long times?
  • 2005/1/10 20:51

  • nem2k2

  • Just popping in

  • Posts: 14

  • Since: 2003/9/18


it just says 'Apache' on the 'Server API' line.

Apache 1.3.26
PHP 4.1.2

MYSQL:
Active Persistent Links 0
Active Links 0
Client API version 3.23.49
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/run/mysqld/mysqld.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient -L/usr/lib -z

Directive Local Value Master Value
mysql.allow_persistent
On On
mysql.default_host
no value no value
mysql.default_password
no value no value
mysql.default_port
no value no value
mysql.default_socket
no value no value
mysql.default_user
no value no value
mysql.max_links
Unlimited Unlimited
mysql.max_persistent
Unlimited Unlimited

6
nem2k2
Re: Apache processes running for long times?
  • 2005/1/12 22:17

  • nem2k2

  • Just popping in

  • Posts: 14

  • Since: 2003/9/18


Is there some way to see what pages are being served/still being served by an apache process so I can narrow down what page(s) are causing the problem?

7
nem2k2
Re: Apache processes running for long times?
  • 2005/2/1 10:36

  • nem2k2

  • Just popping in

  • Posts: 14

  • Since: 2003/9/18


Found the problem, I had some code that was opening a 2nd connection to the DB - this seemed to be killing the webserver.

Login

Who's Online

376 user(s) are online (325 user(s) are browsing Support Forums)


Members: 0


Guests: 376


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits