maunded
asked on
MSSQL Max Procs?
Hi,
Does anyone know how I can tell the number of mssql processes active at any time on a Apache/PHP server?
Im trying to figure out if the connect errors I am getting are because I dont have the mssql.max_procs set high enough.
Thanks!
D.
Does anyone know how I can tell the number of mssql processes active at any time on a Apache/PHP server?
Im trying to figure out if the connect errors I am getting are because I dont have the mssql.max_procs set high enough.
Thanks!
D.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I need to know how many are active at one time, not what the variable is set to.
Id like to be able to graph this, so I can see how often we max out our connections.
Id like to be able to graph this, so I can see how often we max out our connections.
SHOW PROCESSLIST;
and here is a site i found that you might find interesting:
https://www.webmasterpro.de/~ddanier/serverstats/demo/detail.php?graph=9
https://www.webmasterpro.de/~ddanier/serverstats/demo/detail.php?graph=9
ps ax | grep mysql | wc -l
should also work on a nix system, (not tested it)
should also work on a nix system, (not tested it)
ASKER
Excellent, definitely going in the right direction...but Im using MSSQL, so is there a similar command for FreeTDS?....googling :)
oh, i thought it was mysql, sorry i dont know much about freetds
ASKER
Thanks, using mssql_pconnect soved the problem, it seems it was a combination of Apache/FreeTDS and PHP.ini limits.
ASKER
Oh, and also, you can see how many mssql connections are active using phpinfo()
;)
;)
what does that show?
if its really low then try:
set GLOBAL max_connections=200;