Re: Garbace Collection executes 1GB but HEAP Size at 1.5GB!

2007-01-11 Thread starki78
Thank you all for your answers!
Starki

-- Initial Header ---

From  : Suresh babu [EMAIL PROTECTED]
To  : Tomcat Users List users@tomcat.apache.org
Cc  :
Date  : Wed, 10 Jan 2007 19:17:21 +0530
Subject : Re: Garbace Collection executes 1GB but HEAP Size at 1.5GB!







 Hi,

 Just for your information ..

 Memmory is divided in young and old generation as object life increasing it
 will occupy space i old generation,

 Please refer SUN JVM documentation.

 GC will keep happening once the memmory (Young generation )reached
 threshold.

 Young generation again divided in to survivor 0 and survivor 1 spaces.
 When a object is created it keeps allocating in survivor spaces
 alternatively.
 Two types of GC:

 Mini GC : Cleaning only with in young generation
 Full GC: If all objects present in young generation are alive so cleaning
 happens in old generation hence will become FUll GC

 Following is the info I have sent a mail to some person (It may be usefull)

 ---
 Setting heap size to -Xms256   -Xmx1024 will allocate memmory intially to
 256 MB and keeps expanding as  allocating more objects up to 1024.
 My recomendation to you is as mentioned in previos mail set heap size to
 -Xms1536 -Xmx1536 and verify it.

 But Do not increase heap size blindly to greater values which may lead to
 performance issue(Pause times may become more to clean GC).

 try the heap settings and let me know, If still problem is there just send
 the verbose output and log file.

 ---

 On 1/10/07, starki78 [EMAIL PROTECTED] wrote:
 
  Hi I'm profiling my application with -verboseGC.
  My maximum heap-size is
  XMS is 1.5GB but the garbage collection always is executed
  when about 1GB is reached.
  Why is it so early?
  Is there anything to control this?
  I'm using Sun 1.4.2
 
  Thanks and nice greetings
  Starki
 
 
 
 
 
 
  --
  Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom
  http://click.libero.it/infostrada10gen07
 
 
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Suresh Babu,
 Software Engineer,
 Computer Associates-India
 


--
Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom
http://click.libero.it/infostrada11gen07



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Garbace Collection executes 1GB but HEAP Size at 1.5GB!

2007-01-10 Thread starki78
Hi I'm profiling my application with -verboseGC.
My maximum heap-size is
XMS is 1.5GB but the garbage collection always is executed
when about 1GB is reached.
Why is it so early?
Is there anything to control this?
I'm using Sun 1.4.2

Thanks and nice greetings
Starki






--
Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom
http://click.libero.it/infostrada10gen07



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Why can java.io.NotSerializableException occur?

2006-11-07 Thread starki78
We have a crash at tomcat 4.
The thing I don't understand is the fact that
the class causing this error has no default constructor and
does not implement serializable.

So why can this error occur?

THANKS A LOT


2006-11-07 11:25:49 StandardManager[/pss] IOException while loading persi=
sted sessions: java.io.WriteAbortedException: writing aborted; java.io.No=
tSerializableException: com.struts.statistics.Deviation

.Measures
java.io.WriteAbortedException: writing aborted; java.io.NotSerializableEx=
ception: com.struts.statistics.Deviation
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at java.util.ArrayList.readObject(ArrayList.java:547)
at sun.reflect.GeneratedMethodAccessor77.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces=
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:838=
)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1746)=

at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1=
646)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at org.apache.catalina.session.StandardSession.readObject(StandardSessio=
n.java:1369)
at org.apache.catalina.session.StandardSession.readObjectData(StandardSe=
ssion.java:864)
at org.apache.catalina.session.StandardManager.load(StandardManager.java=
:440)
at org.apache.catalina.session.StandardManager.start(StandardManager.jav=
a:655)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3=
585)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)=

at org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)=

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363=
)
at org.apache.catalina.core.StandardService.start(StandardService.java:4=
97)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:219=
0)
at org.apache.catalina.startup.CatalinaService.start(CatalinaService.jav=
a:273)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.=
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces=
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.BootstrapService.start(BootstrapService.j=
ava:245)
at org.apache.catalina.startup.BootstrapService.main(BootstrapService.ja=
va:307)=0A




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Why can java.io.NotSerializableException occur?

2006-11-07 Thread starki78
THank you, I don't know
I just can say that this error occured the first time:

Has someone seen it before?
Nice greetings Starki

2006-11-07 11:25:49 StandardManager[/pss] IOException while loading persisted 
sessions: java.io.WriteAbortedException: writing aborted; 
java.io.NotSerializableException: com.production.pss.bde.dwh.Deviance
java.io.WriteAbortedException: writing aborted; 
java.io.NotSerializableException: com.production.pss.bde.dwh.Deviance
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at java.util.ArrayList.readObject(ArrayList.java:547)
at sun.reflect.GeneratedMethodAccessor77.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:838)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1746)









-- Initial Header ---

From  : Juanjo Cuadrado [EMAIL PROTECTED]
To  : Tomcat Users List users@tomcat.apache.org
Cc  :
Date  : Tue, 7 Nov 2006 12:01:56 +0100
Subject : Re: Why can java.io.NotSerializableException occur?







 Hi,

 maybe the problem is that tomcat is trying to do anything with the
 session and it is trying to write you object for sesion persistence...


 2006/11/7, starki78 [EMAIL PROTECTED]:
 
  We have a crash at tomcat 4.
  The thing I don't understand is the fact that
  the class causing this error has no default constructor and
  does not implement serializable.
 
  So why can this error occur?
 
  THANKS A LOT
 
 
  2006-11-07 11:25:49 StandardManager[/pss] IOException while loading persi=
  sted sessions: java.io.WriteAbortedException: writing aborted; java.io.No=
  tSerializableException: com.struts.statistics.Deviation
 
  .Measures
  java.io.WriteAbortedException: writing aborted; java.io.NotSerializableEx=
  ception: com.struts.statistics.Deviation
  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
  at java.util.ArrayList.readObject(ArrayList.java:547)
  at sun.reflect.GeneratedMethodAccessor77.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces=
  sorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:838=
  )
  at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1746)=
 
  at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1=
  646)
  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
  at org.apache.catalina.session.StandardSession.readObject(StandardSessio=
  n.java:1369)
  at org.apache.catalina.session.StandardSession.readObjectData(StandardSe=
  ssion.java:864)
  at org.apache.catalina.session.StandardManager.load(StandardManager.java=
  :440)
  at org.apache.catalina.session.StandardManager.start(StandardManager.jav=
  a:655)
  at org.apache.catalina.core.StandardContext.start(StandardContext.java:3=
  585)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)=
 
  at org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)=
 
  at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363=
  )
  at org.apache.catalina.core.StandardService.start(StandardService.java:4=
  97)
  at org.apache.catalina.core.StandardServer.start(StandardServer.java:219=
  0)
  at org.apache.catalina.startup.CatalinaService.start(CatalinaService.jav=
  a:273)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.=
  java:39)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces=
  sorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at org.apache.catalina.startup.BootstrapService.start(BootstrapService.j=
  ava:245)
  at org.apache.catalina.startup.BootstrapService.main(BootstrapService.ja=
  va:307)=0A
 
 
 
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


--
Scopri il nuovo MOTOROLA K1, il cellulare con superficie frontale a specchio. 
Se sarai fortunato potrai anche vincerne uno! Clicca e vinci !
http://click.libero.it/motorola8nov



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e

Re: Help!Tomcat crashes:Waiting for instance(s) to be deallocated

2006-05-14 Thread starki78
Ciao thank you for your answer!

Well we use our own connection-pool, with
the close of the connection in each-finally
call!
Normally the connection is closed immediately
but perhaps it's a thread problem!

Can someone tell me if you can tune the thread behaviour
is there any possiblity, or is it just a problem with tomcat 4.1?

Thank you!
Starki





-- Initial Header ---

From  : Martyn Hiemstra [EMAIL PROTECTED]
To  : Tomcat Users List users@tomcat.apache.org
Cc  :
Date  : Thu, 11 May 2006 10:26:11 +0200
Subject : Re: Help!Tomcat crashes:Waiting for instance(s) to be deallocated







 Hi Starki78

 I had this problem when using a singelton class that stored a datasource
 in it. Everytime I pressed F5 really fast the web server would hang and
 when I shutdown I got that same message. Apparently when pressing F5
 very fast instead of the singelton only using 1 datasource (The one in 
 the singelton) it loaded 5 datasources and then the connection pool was
 full. Since the pool timeouts where set to 5 minutes the server would
 appear to hang when in actual fact my code was waiting for an available
 datasource.

 I also get this when debugging my tomcat server using eclipse. If I'm
 debugging and one of the server threads is still debugging and I
 shutdown the server I get this message as well.

 I'm guessing that somewhere alot of threads are waiting to finish. The 
 fact that you have 536 instances to be deallocated could mean you have a
 serious flaw in your code.

 Martyn

 starki78 schreef:
  Hi, we are working with Tomcat 4.1:
  I didn't find a proper cause in the log-files.
 
  Can someone help me please?
  How could this be possible??
 
  2006-05-11 06:53:35 StandardWrapper[/pss:action]: Waiting for 74 
  instance(s) to be deallocated
 
  2006-05-11 06:53:36 StandardWrapper[/pss:jsp]: Waiting for 1 instance(s) to 
  be deallocated
 
  2006-05-11 06:53:36 StandardWrapper[/pss:default]: Waiting for 536 
  instance(s) to be deallocated
 
 
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Help!Tomcat crashes:Waiting for instance(s) to be deallocated

2006-05-11 Thread starki78
Hi, we are working with Tomcat 4.1:
I didn't find a proper cause in the log-files.

Can someone help me please?
How could this be possible??

2006-05-11 06:53:35 StandardWrapper[/pss:action]: Waiting for 74 instance(s) to 
be deallocated

2006-05-11 06:53:36 StandardWrapper[/pss:jsp]: Waiting for 1 instance(s) to be 
deallocated

2006-05-11 06:53:36 StandardWrapper[/pss:default]: Waiting for 536 instance(s) 
to be deallocated






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Accessing classes within an web-application from a shared folder

2006-04-07 Thread starki78
Hi,

 I made some tests during the
last days with classes I put in the shared folder and others which are still in 
the web-application folder.
The result is, that there is very very few to put shared!!

For instance:
 I've a log class inside my webapplication
and want it to be accessed from a class
which is shared there!

In this scenario occurs a strange class-loader violating exception!

Is there any possibility to overcome this?

Nice greetings Starki




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Error Message when classes are put in shared-Folder

2006-04-04 Thread starki78
Hello!


I've classes within a web-application on tomcat-5 and everything works fine.

Then I put these classes to the shared folder, I get this error:


java.lang.NullPointerException

org.apache.struts.taglib.TagUtils.retrieveMessageResources(TagUtils.java:1161)
org.apache.struts.taglib.TagUtils.message(TagUtils.java:1024)
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:224)

org.apache.jsp.jsp.index_jsp._jspx_meth_bean_message_0(index_jsp.java:180)
org.apache.jsp.jsp.index_jsp._jspService(index_jsp.java:70)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


When I copy the package to the standard shared-Folder and I get this exception
These are the lines of the struts-framework where the error occurs:

 MessageResources resources =
retrieveMessageResources(pageContext, bundle, false);



Can someone give me a hint if I can do something against this error?

Nice greetings Starki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem with following a link in Virtual Path!

2005-11-02 Thread starki78
Hi I've a problem with Tomcat!

I've established a virtual-path called itpm_public
that leads to a path:
/mnt/data1/sambra_shares/itpm_public
this works but after this folder
I've a (soft) link to another folder.
Tomcat tells me that the page cannot be displayed!

Is there any possibility such as follow links or something simile?

It's a hard problem for me and any help would be appreciated!

Thanks Starki






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



URL-Encoding Problems after Transformation from JRUN to TOMCAT

2005-10-19 Thread starki78
Hi I've the following problem that makes me
a little bit mad with encoding a URL:


JRUN

URLEncoder.encode(downloads.jsp?group=%=group%);

--Method works on JRUN


TOMCAT 5.0

URLEncoder.encode(downloads.jsp?group=%=group%,iso-8859-1);

--at the bottom of the explorer it is displayed wrong
when I look at the properties of the HTML-Site
it is display correct.
The hyperlink is not found.
I also tested it with utf-8 and windows charsets but nothing helped.


Can someone help me?

Thanks a lot


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]