Link to home
Start Free TrialLog in
Avatar of maunded
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.
Avatar of maUru
maUru

show variables like 'max_connections';

what does that show?

if its really low then try:

set GLOBAL max_connections=200;
ASKER CERTIFIED SOLUTION
Avatar of maUru
maUru

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of maunded

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.
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
ps ax | grep mysql | wc -l

should also work on a nix system, (not tested it)
Avatar of maunded

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
Avatar of maunded

ASKER

Thanks, using mssql_pconnect soved the problem, it seems it was a combination of Apache/FreeTDS and PHP.ini limits.
Avatar of maunded

ASKER

Oh, and also, you can see how many mssql connections are active using phpinfo()
;)