Post date: 2007-02-18 23:47I have tested this now and I can not recommend it. It does work to open the session and database in the init() and then recycle it in destroy(). However if you want to take the server down it will stop when taking down then nserver.exe task and you have to kill it to get it down. I have tried to leave a stress test tool against the servlet overnight (75 requests per second against the servlet) and it works fine, no memory leaks that are noticeable. But since the server behaves unstable it is simply not worth the extra little performance you gain by doing the pre opening of databases and views.
|