RE: J2EE (Spring) + Flex + Tomcat 6.0.18 problem

2010-06-14 Thread Martin Gainty

look at catalina.bat -X attributes (stack,minHeap and maxHeap)

catalina will use parameters from JAVA_OPTS environment variable

also..you could be experiencing some issues with permgen not being collected


http://wiki.apache.org/tomcat/FAQ/Memory
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.



 

> Date: Mon, 14 Jun 2010 03:59:59 -0700
> From: kitika...@gmail.com
> To: users@tomcat.apache.org
> Subject: Re: J2EE (Spring) + Flex + Tomcat 6.0.18 problem
> 
> 
> Hi and thanks for all responses.
> > It sounds like a timeout, rather than an empty response.
> > Please remove all comments and any passwords from your server.xml and
> > post it here.
> [code]
> 
>  SSLEngine="on" />
> 
>  />
>  className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
> 
>  type="org.apache.catalina.UserDatabase"
> description="User database that can be updated and saved"
> factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
> pathname="conf/tomcat-users.xml" />
> 
> 
>  connectionTimeout="2" 
> redirectPort="8443" />
>  
> 
>  resourceName="UserDatabase"/>
>  unpackWARs="true" autoDeploy="true"
> xmlValidation="false" xmlNamespaceAware="false">
> 
> 
> 
> 
> [/code]
> Well, it looks like timeout occured, because time of failing response was
> about 21 seconds. But why?
> > 50Mb free isn't a meaningful number. More useful to know how much
> > memory the JVM is currently using and what it's heap is configured to use.
> I used probe and it showed that memory was dropping from 40 megabytes till
> 5-10 and then it was going back to 40.
> > If you think it's a bug in Tomcat, you could try using the latest
> > release instead of an older one.
> I shall try.
> --
> Regards,
> Kitikat
> -- 
> View this message in context: 
> http://old.nabble.com/J2EE-%28Spring%29-%2B-Flex-%2B-Tomcat-6.0.18-problem-tp28818290p28878122.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
  
_
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1

Re: J2EE (Spring) + Flex + Tomcat 6.0.18 problem

2010-06-14 Thread kitikat

Hi and thanks for all responses.
> It sounds like a timeout, rather than an empty response.
> Please remove all comments and any passwords from your server.xml and
> post it here.
[code]

  
  
  
  
  

  
  

 

  
  
  

  

[/code]
Well, it looks like timeout occured, because time of failing response was
about 21 seconds. But why?
> 50Mb free isn't a meaningful number.  More useful to know how much
> memory the JVM is currently using and what it's heap is configured to use.
I used probe and it showed that memory was dropping from 40 megabytes till
5-10 and then it was going back to 40.
> If you think it's a bug in Tomcat, you could try using the latest
> release instead of an older one.
I shall try.
--
Regards,
Kitikat
-- 
View this message in context: 
http://old.nabble.com/J2EE-%28Spring%29-%2B-Flex-%2B-Tomcat-6.0.18-problem-tp28818290p28878122.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: J2EE (Spring) + Flex + Tomcat 6.0.18 problem

2010-06-10 Thread André Warnier

Caldarale, Charles R wrote:

From: Pid [mailto:p...@pidster.com]
Subject: Re: J2EE (Spring) + Flex + Tomcat 6.0.18 problem


I've used Charles 3.5.1 to analyse http request/response

Chuck is *software*!?


The secret is out...

That release is at least 50 years old however, and although it is 
supportive, it is no longer supported.  The OP may want to trade it in 
against a newer version.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: J2EE (Spring) + Flex + Tomcat 6.0.18 problem

2010-06-10 Thread Caldarale, Charles R
> From: Pid [mailto:p...@pidster.com]
> Subject: Re: J2EE (Spring) + Flex + Tomcat 6.0.18 problem
> 
> > I've used Charles 3.5.1 to analyse http request/response
>
> Chuck is *software*!?

The secret is out...

(But not quite as soft as I used to be, since we started using a Wii Fit.)

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: J2EE (Spring) + Flex + Tomcat 6.0.18 problem

2010-06-10 Thread Martin Gainty

if your bean implemenents implements Lifecycle  it is likely that you 
LifecycleBean is not running in which case you'll need to restart it e.g

 
  true
 


if(!context.getBean("lifecycle").isRunning()) 
context.getBean("lifecycle").start();


if your bean implelements FactoryBean then increase the 
timeToLive(default is 120sec) or maxElementsInMemory(default is 1) or 
maxElementsOnDisk(default is 1000)

 

post your code if you need further assistance
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.Ce message est confidentiel et peut être 
privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec 
bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non 
autorisée ou la copie de ceci est interdite. Ce message sert à l'information 
seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant 
donné que les email peuvent facilement être sujets à la manipulation, nous ne 
pouvons accepter aucune responsabilité pour le contenu fourni.



 

> Date: Thu, 10 Jun 2010 10:25:37 +0100
> From: p...@pidster.com
> To: users@tomcat.apache.org
> Subject: Re: J2EE (Spring) + Flex + Tomcat 6.0.18 problem
> 
> On 08/06/2010 15:03, kitikat wrote:
> > 
> > Hello,
> > I have been searching a solution for my problem and I haven't found an
> > answer, so I decided to write here. I have a system, consisting of J2EE
> > (Spring) server-side LifeCycle Data Services for my Adobe Flex client
> > application. Synchronization of files plays a major role in that system - I
> > repeatedly call in flex one remote method from my Spring services
> > (downloadPhoto) and that method returns the content of requested file - from
> > 10 to 1000 KB. 
> > Unfortunately, from time to time, the whole process is broken during
> > downloading one of the photos. It happens to different photos; they have
> > different size, etc. After successful sending request for a photo there is
> > 20 seconds' long period of time, and then Tomcat returns http code: 0 (I've
> > used Charles 3.5.1 to analyse http request/response - request is ok). I
> 
> Chuck is *software*!?
> 
> It sounds like a timeout, rather than an empty response.
> Please remove all comments and any passwords from your server.xml and
> post it here.
> 
> > don't have any other information about response. I've checked that this
> > situation occurs _before_ my java method code is executed. So it happens
> > between accepting my request and calling my code. Server's performance (it's
> > VPS) is rather good (there's 50 MB memory free and a lot of cached; there's
> > plenty of hard disk space and top/load don't reveal any CPU strain). Of
> 
> 50Mb free isn't a meaningful number. More useful to know how much
> memory the JVM is currently using and what it's heap is configured to use.
> 
> > course there is no trace of any bugs in logs (catalina.out and others). I
> > suppose that it might be a bug in Tomcat, but maybe some of you have
> > experienced similar problems?
> 
> If you think it's a bug in Tomcat, you could try using the latest
> release instead of an older one.
> 
> 
> p
> 
> > I'm looking forward to hearing from you.
> > Best regards,
> > Kitikat
> 
> 
  
_
The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail.
http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4

Re: J2EE (Spring) + Flex + Tomcat 6.0.18 problem

2010-06-10 Thread Pid
On 08/06/2010 15:03, kitikat wrote:
> 
> Hello,
> I have been searching a solution for my problem and I haven't found an
> answer, so I decided to write here. I have a system, consisting of J2EE
> (Spring) server-side LifeCycle Data Services for my Adobe Flex client
> application. Synchronization of files plays a major role in that system - I
> repeatedly call in flex one remote method from my Spring services
> (downloadPhoto) and that method returns the content of requested file - from
> 10 to 1000 KB. 
> Unfortunately, from time to time, the whole process is broken during
> downloading one of the photos. It happens to different photos; they have
> different size, etc. After successful sending request for a photo there is
> 20 seconds' long period of time, and then Tomcat returns http code: 0 (I've
> used Charles 3.5.1 to analyse http request/response - request is ok). I

Chuck is *software*!?

It sounds like a timeout, rather than an empty response.
Please remove all comments and any passwords from your server.xml and
post it here.

> don't have any other information about response. I've checked that this
> situation occurs _before_ my java method code is executed. So it happens
> between accepting my request and calling my code. Server's performance (it's
> VPS) is rather good (there's 50 MB memory free and a lot of cached; there's
> plenty of hard disk space and top/load don't reveal any CPU strain). Of

50Mb free isn't a meaningful number.  More useful to know how much
memory the JVM is currently using and what it's heap is configured to use.

> course there is no trace of any bugs in logs (catalina.out and others). I
> suppose that it might be a bug in Tomcat, but maybe some of you have
> experienced similar problems?

If you think it's a bug in Tomcat, you could try using the latest
release instead of an older one.


p

> I'm looking forward to hearing from you.
> Best regards,
> Kitikat




signature.asc
Description: OpenPGP digital signature