I am using Custom Tags in my
JSP pages, created as per our requirements . The thing is working fine.
However when i am checking code performance using "Optimize It", the results are rather surprising. The number of tag instances being created, just keeps mounting. Was under the impression that Websphere 4.0 Single Server Edition does pool tag instances and the same instances are used repeatedly. However the OptimizeIt results show otherwise.
Had earlier missed out overriding the release() method. However even on implementing it, there is apparently no reuse of instances. Also have put a
System.out.println("Just released : "+ this);
in the release method. And this is being called every time the tag is being used. Theoretically release() should be called only when the app server does not wish to pool the instance and just simply release it.
Also the hash code that is being printed is unique for every System.out ..So i suppose new instances are being created every time.
Kindly advice, if a change in code or in WebSphere config can take care of this problem so that instances are pooled and reused. Under extensive load, creation of 100s of these instances, i guess will kill the our system.
thanks and regards,
Harshad
(
SCJP, SCWCD)