the sqlsrvr.exe process keeps on increasing up to 300-500MB.
Ok, where is the hugh here? I have a 16gb sql server ;)
SQL Server, UNLESS TOLD OTHERWISE IN THE CNOFIGURATION, will cache as much as it can. Every page (8kb) it reads stays in memor. Discs are slow. ram is fast. It asumes it is a server and thus can use the memory.
And the form takes more than 10mins to execute.
Hm, lets see.
- Crappy programming (missing indices`?)
- Not enough Memory ;) Yes, SQL Server takes you say up to 500mb - is that a VM with 128Mb to start with or what?
- Unsuitable disc subsystem. SQL Servers are VERY interesting in DISC IOPS - not mb/s but IOPS. I run my server with 10 discs now and it wants more.
I am quite strongly pointuing into either 1 (indices missing) or 2 (crappy hardware). Dont take it personal, but you whole setup soudns really outdated and you dont really yound like you are on top of things, so this is just a shot into the wild based no past experience.
The most brutal I had in this area was a person with zero indices and a web page that executed like 30 queries all resulting in table scans and overlaoding the poor normal cheap disc so much the computer got toally unresponsive for half an hour.
To start:
- Check performance coutners, mostly disc based. This gives you a hint.
- Make sure you proper indices. Valdiate that by checking the queries executing with the profiler. It is possible something just triggers significant inefficient operations thanks to a missing index.
- If that is not the case, check waits statistics - locking may be the culprit, too.
It is VERY hard to say ANYTHING except - well - that you dont give nough information.
I have seen statements like this:
When I submit a form which calls a few stored procs & finally execute an INSERT into a table
explode into tons of inefficient operations in 12 layers of cascaded stored procedures.
That said, if it is hardware - upgrade to a SSD. A 120gb SSD is VERY cheap these days and EXTREMELY fast. I have Velociraptors 3 now for some oeprations and tehy do up to 60.000 IPS - while a higher end disc struggles with 400.