I have a high performance PHP script that uses threads and perform a lot of HTTP Post and Database operation per each iterations. I won't dive into the script code here, caus it's a simple one, so there's no need to do so.
I want a server only to run this PHP script and nothing else, so I want all the possible server resources to be available for this script.
The issue:
I've tried to run this script in a server (it was tested in servers very similar to mine and it did a great job) with default configuration and I've achieved a bad performance (few iterations per second). And the script process just used 5% of CPU and 13% of memory. So, there should be some common bottlenecks, but I have no idea on what and how to avoid them.
As I never set up a server for cases like this before, could anyone please tell me where to begin with it? How would be a common server setup for me?
Edit:
Just got it! (can't answer my onw question... check my comment bellow) :D