on 11-29-2006 8:43 AM
Hi all,
we experience some OutOfMemory exception on our system. Therefore i have got a couple of questions.
Q1: Does anybody know if each web application has got his own private part in the permanent generation ?
So that in case we would have several web applications which depend on the same libraries such as hibernate or spring then these libs/classes would be loaded several times into the permanent space.
Q2: In case we would create library projects for spring and hibernate and so on in the J2EE engine do they get loaded just onces into the permanent space or do they get loaded several times ?
best regards,
Matthias Hlubek
Matthias,
Every class is unique by key ClassName+DefiningClassLoader. So if N applications has same library embeded, then every library class get loaded N times while every application has own class loader. However, if you deploy your library as WebAS Library and creates references from application to WebAS Library then classes will be loaded only once: class loaders of applications will refer single class loader of library that defines classes.
So answers are [Q1] -- they do, [Q2] yes, only once.
Valery Silaev
SaM Solutions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Matthias,
I read this document:
http://help.sap.com/saphelp_webas630/helpdata/en/28/c9a3a9606f434ea757a3536d220704/frameset.htm
Still it's unclear for me whether weak reference is enough or strong is required.
As usual, try weak, if not working try strong.
Also you can read this:
http://help.sap.com/saphelp_webas630/helpdata/en/9a/4e4f3e065de946e10000000a114084/frameset.htm
http://help.sap.com/saphelp_webas630/helpdata/en/5d/11243ee9399a0be10000000a114084/frameset.htm
Valery Silaev
SaM Solutions
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.