sneskid Posted October 28, 2006 Share Posted October 28, 2006 I ran this string as a shell command: $cmd = 'ps -o%mem,rss,pid | grep ' . getmypid();It shows the mem usage. I ran it in a bare script and it showed it's using just over 7000 kb of mem, 0.7% or total memory.I guess the server has 1gig memory.This seemed like a large chunk of memory for a bare bone script to be using, so I made a huge array(range(1, 10000)) to see if the mem usage jumped, just to make sure this was the right process. It spiked up by 800kb.The question I have... isn't 7 megs rather much for a bare script process to take up??How does php run each script? Does it start them as their own process, or as a thread from the main php process, or does what I just typed make me sound like a total noob.Thanks for any insight, feel free to include extra details, nerd talk is my friend. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.