I've created Chatroom in PHP. My scripts use MySQL to store user data. CHatroom uses frames, one of them is refreshing every N secs.
Let's say there are 500 users on 10 chatrooms, each of them will ask http server(i use apache) for page every N secs(now it's set to 7) and this will create one httpd process, each takes about 2 Mb in RAM of my server.
2Mb x 500 = 1Gb
Additionaly my ChatRoom lets users to chat in private windows like on windows irc client, in this case number of processes can easly be doubled.
How should i optimize my apache server to make my chat comfortable for users and 'nice' for system.
thx