in reply to Multithreaded Server Crashes under heavy load
Are you running into a system resources limit? Have you checked your memory usage of the script when it hits 500 threads?
Google for ulimit windows for some tips.