# PHP4 Sockets and Server Load?

**URL:** https://forum.kirupa.com/t/php4-sockets-and-server-load/218795
**Category:** programming
**Created:** [March 11, 2007, 5:46am UTC](https://forum.kirupa.com/t/php4-sockets-and-server-load/218795 "2007-03-11T05:46:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Gamebrew](https://avatars.discourse-cdn.com/v4/letter/g/bc79bd/32.png) [@Gamebrew](https://forum.kirupa.com/u/Gamebrew)
#### Post date: [March 11, 2007, 5:46am UTC](https://forum.kirupa.com/t/php4-sockets-and-server-load/218795/1 "2007-03-11T05:46:12Z")

</div>

I just finished my first multiplayer game and its doing fairly well, I had at most 485 simultaneous users off and playing with memory\_usage() of about 2MB. The server side is PHP4, PHP5 wasn’t on my server (I also heard its unstable at the moment).

[http://www.gamebrew.com/play-artillery-live](http://www.gamebrew.com/play-artillery-live)

I’m testing the load and the server program crashes every 1-3 hours. But it sometimes could last much longer. I don’t know if it’s my bad programming or memory leaks, it doesn’t report any errors it just hangs. I configed “php.ini” and apache “httpd.conf” for some optimizing settings too.

My question, is PHP meant to be used as a game server like this? Does anyone else know of any successful multiplayer games that use PHP, how many users can it support and if my constant crashing is normal?

Thanks!
