Writing a text file back to browser from a servlet

2006-10-13 Thread David Kerber
I'm trying to do something that seems like it should be very easy, but 
can't get it to work:  sending a .txt file back to the user's browser so 
they can save it to their local hard disk.  I am having no trouble 
creating the file and writing it to a temporary place on the server, but 
can't figure out what I need to do so the users can save the result.


Right now, I'm using the following code excerpt:

 fReader = new FileReader( fullFileName );
 bReader = new BufferedReader( fReader );
 oStream = response.getOutputStream();
 while (( logString = bReader.readLine()) != null ) {
 // I'm sure a println would also work, but this is what I happen 
to have right now

 oStream.write(( logString + EddRcvr.newLineStr ).getBytes());
 }
 oStream.close();
 bReader.close();
 fReader.close();


And it *displays* just fine in the browser window, but when I try to 
save it (using firefox 1.5.x), the download windows says it completed 
successfully, but the file is never there when I try to look at it.


Any suggestions as to what I'm missing?

TIA!
Dave



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



xampp-->tomcat, java performance

2006-10-13 Thread boonting

Hello, 

Anybody work with xampp-->tomcat, mysql, apache? If i post into wrong forum
please guide me. If my question is confusing, please let me know, i will try
my best to explain.

Recently I am facing very weird problem.
My Company server attacked by virus and hijacked by hacker.
I have re-installed my anti-virus, and run some program to check those
un-necessary windows registry.

Now the problem is my tomcat application is unstable. In the task manager,
java.exe when the CPU usage is 25%, then tomcat will not responding.The
application is dying. The CPU usage would not drop, it will stay at 25 %, i
need to manually kill the process from task manager. The tomcat shutdown.bat
can't stop the java.exe.
For your information, Tomcat startup.bat will start the java.exe. Therefore,
the tomcat shutdown.bat should be able to stop the java.exe service. But but
...

I am using perfmon to monitor the java performance. In task manager ,
java.exe 25%, then in perfmon is 100%.
I am really no idea what is going on? Anybody can guide me ? Is it any other
background process running?
In task manager, i can't see other unknow process running.

Information:
---
I am using xampp version:
ApacheFriends XAMPP (basic package) version 1.5.0-pl1

  + Apache 2.0.55
  + MySQL 5.0.15 + Bug #13783
  + PHP 5.0.5 + PHP 4.4.1-pl1 + PEAR
  + eAccelerator 0.9.4-dev
  + PHP-Switch win32 1.0 (from Apachefriends, use the "php-switch.bat") 
  + XAMPP Control Version 2.1 from www.nat32.com
  + XAMPP Security 1.0  
  + SQLite 2.8.15
  + OpenSSL 0.9.8a
  + phpMyAdmin 2.6.4-pl3
  + ADODB 4.65
  + Mercury Mail Transport System v4.01b
  + FileZilla FTP Server 0.9.10a
  + Webalizer 2.01-10
  + Zend Optimizer 2.5.10a
Tomcat version:
=> Tomcat 5.5.9
=> mod_jk2/2.0.4 

JDK required is JAVA SUN J2EE 5.0 SDK 

My application cannot continue after 10 minutes, because the java.exe will
reach 25%, then application is not responding. Please help, my application
got customer using.
Your help is appreciated. I would like to know any other suggestion except
format the machine.
-- 
View this message in context: 
http://www.nabble.com/xampp--%3Etomcat%2C-java-performance-tf2440960.html#a6806591
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
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: Higher level context

2006-10-13 Thread Mark Thomas
[EMAIL PROTECTED] wrote:
> How can I get an higher level context than ServletContext in a way that 
> gives me all web apps running on Tomcat, like Manager?

Take a look at the source for the manager servlet and see how it does it.

Mark

-
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: Tomcat CPU Profiler

2006-10-13 Thread Sunitha Kumar \(sunithak\)
Jprofiler is also good 

-Original Message-
From: Mark Miller [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 13, 2006 3:38 PM
To: Tomcat Users List
Subject: Re: Tomcat CPU Profiler

http://eclipsecolorer.sourceforge.net/index_profiler.html

Is a nice eclipse profiler that can profile tomcat. I am sure there are
many others as well. Unfortunatley, that eclipse profiler seems to be
abandonded or something and last I knew requires you to find a special
patch to get it to work with eclipse >= 3.2 or mabye 3.1. Search google.
It is a nice tool otherwise. I also really liked the ease of Sun's (I
think Sun's) simple jmp profiler.

- Mark

On 10/13/06, Jsherwood <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> What is the best program to use to profile the cpu used by tomcat(Pref

> an open source one).
>
> We run tomcat 5.x on a Win2003 Server and are having CPU problems.
>
> We need to find out where the cpu is being used the most(class or 
> method) and the more details the better.
>
> We program in Eclipse if that makes a difference.
>
> Thanks,
> James
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, 
> e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
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: change server default enconding -Where to set JAVA_OPTS in catalina.sh for UTF8?

2006-10-13 Thread Mark Thomas
Java Development Team wrote:
> I dont know about this either. How do I get  access to  default servlet

You'll only have a problem if:
- you include static resources
- the static resources are encoded other than with the default platform
encoding

If you need to make changes, the default servlet is configured in
conf/web.xml in a standard install.

Mark


-
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: Tomcat CPU Profiler

2006-10-13 Thread Mark Miller

http://eclipsecolorer.sourceforge.net/index_profiler.html

Is a nice eclipse profiler that can profile tomcat. I am sure there are many
others as well. Unfortunatley, that eclipse profiler seems to be abandonded
or something and last I knew requires you to find a special patch to get it
to work with eclipse >= 3.2 or mabye 3.1. Search google. It is a nice tool
otherwise. I also really liked the ease of Sun's (I think Sun's) simple jmp
profiler.

- Mark

On 10/13/06, Jsherwood <[EMAIL PROTECTED]> wrote:


Hello,

What is the best program to use to profile the cpu used by tomcat(Pref an
open source one).

We run tomcat 5.x on a Win2003 Server and are having CPU problems.

We need to find out where the cpu is being used the most(class or method)
and the more details the better.

We program in Eclipse if that makes a difference.

Thanks,
James

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




Tomcat CPU Profiler

2006-10-13 Thread Jsherwood
Hello,

What is the best program to use to profile the cpu used by tomcat(Pref an open 
source one).

We run tomcat 5.x on a Win2003 Server and are having CPU problems.

We need to find out where the cpu is being used the most(class or method) and 
the more details the better.

We program in Eclipse if that makes a difference.

Thanks,
James

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



[Fwd: java.lang.NoClassDefFoundError: org/apache/coyote/http11/Http11Processor$1]

2006-10-13 Thread Stefan Greiner



Hi folks

I get the following error message on a Debian Linux with Tomcat 4 and 
Apache2. Normaly I don't have any problems with running servlet 
applications - meaning the tomcat is running without any problems on 
other applications. Any ideas?


2006-10-13 22:58:22 StandardWrapperValve[wsa1_servlet]: 
Servlet.service() for servlet wsa1_servlet threw exception

javax.servlet.ServletException: Servlet execution threw an exception
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:222)
 at 
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:51)
 at 
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:129)

 at java.security.AccessController.doPrivileged(Native Method)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:125)
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
 at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)

 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
 at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
 at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)

 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
 at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
 at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
 at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
 at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
 at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)

 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
 at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
 at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)

 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
 at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
 at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
 at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
 at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
 at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)

 at java.lang.Thread.run(Thread.java:595)
- Root Cause -
*java.lang.NoClassDefFoundError: org/apache/coyote/http11/Http11Processor$1*
 at 
org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:1496)
 at 
org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:892)

 at org.apache.coyote.Response.action(Response.java:180)
 at 
org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:562)

 at org.apache.coyote.Response.doWrite(Response.java:542)
 at 
org.apache.coyote.tomcat4.OutputBuffer.realWriteBytes(OutputBuffer.java:362)

 at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:398)
 at org.apache.coyote.tomcat4.OutputBuffer.doFlush(OutputBuffer.java:314)
 at org.apache.coyote.tomcat4.OutputBuffer.flush(OutputBuffer.java:293)
 at 
org.apache.coyote.tomcat4.CoyoteOutputStream.flush(CoyoteOutputStream.java:73)

 at sun.nio.cs.StreamEncoder$CharsetSE.implFlush(StreamEncoder.java:410)
 at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:152)
 at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:213)
 at java.io.BufferedWriter.flush(BufferedWriter.java:236)
 at java.io.PrintWriter.flush(PrintWriter.java:270)
 at com.progress.wsa.WsaServlet.processPingRequest(WsaServlet.java:865)
 at com.progress.wsa.WsaServlet.doGet(WsaServlet.java:359)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
 at 
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:51)
 at 
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:129)

Re: Retrieving tomcat realm from org.apache.catalina.Server object

2006-10-13 Thread Sathija Pavuluri
in the ${CATALINA_HOME}/webapps/myapp/META-INF/context.xml
i've also tried ${CATALINA_HOME}/conf/Catalina/localhost/myapp.xml

these places seem to be where tomcat 5.5 expects to find the  element.

i had it in the server.xml at one point, but tomcat 5.5 doesnt recommend that.




> where you set your web context parameter?
>
> On 10/14/06, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>>
>> Nope, nothing in the logs.
>> But I have a feeling its something to do with permissions.
>> I've given privilged access to the webapp, cant think of anything else.
>> Another weird thing is, whether I set the context's privileged="true" or
>> "false" it behaves the same way
>>
>> I am using Tomcat 5.5 , has anything changed since earlier versions in
>> this regard?
>>
>>
>>
>> > Is there any error info in log files? Would it be permission problem?
>> ...
>> > make sure all needed tomcat libs are readable by your webapp ...
>> >
>> > On 10/13/06, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>> >>
>> >> yes, it does look ok except for the findServices().
>> >> In fact, as I mentioned earlier i tried calling
>> >> server.getGlobalNamingResources(), getPort(), getInfo() on the server
>> >> and they all seem to return the right stuff.
>> >> Its just the services.
>> >>
>> >> I've set privileged="true" on my webapp context.
>> >>
>> >> Can't figure out if I missed anything else.
>> >>
>> >>
>> >> > is the server instance ok?
>> >> >
>> >> > On 10/13/06, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>> >> >>
>> >> >> I've tried that too.
>> >> >> findServices() returns an array of length 0.
>> >> >>
>> >> >>
>> >> >>
>> >> >> > I dont see any problem,
>> >> >> >>In fact, server.findServices() always returns an empty array of
>> >> >> services.
>> >> >> >>But my server.xml does define a Catalina service.
>> >> >> > try to use findServices() and get first service of the service
>> array
>> >> and
>> >> >> see
>> >> >> > if still null ...
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > On 10/13/06, Sathija Pavuluri <[EMAIL PROTECTED]>
>> wrote:
>> >> >> >>
>> >> >> >> Hello,
>> >> >> >>
>> >> >> >> I would like to retrieve the tomcat realm object from the Server
>> >> >> object.
>> >> >> >> Below is the code snippet I use ...
>> >> >> >>
>> >> >> >> __
>> >> >> >>
>> >> >> >> Server server = ServerFactory.getServer();
>> >> >> >> Service service = server.findService("Catalina");
>> >> >> >> Engine engine = (Engine) service.getContainer();
>> >> >> >> //engine.getRealm();
>> >> >> >>
>> >> >> >> Host host = (Host) engine.findChild(engine.getDefaultHost());
>> >> >> >> Context context = (Context) host.findChild("enetaware");
>> >> >> >> Realm realm = context.getRealm();
>> >> >> >> ___
>> >> >> >>
>> >> >> >> But at line 2 here server.findService returns a null.
>> >> >> >> In fact, server.findServices() always returns an empty array of
>> >> >> services.
>> >> >> >> But my server.xml does define a Catalina service.
>> >> >> >>
>> >> >> >> Other methods like server.getGlobalNamingResources() do return
>> some
>> >> >> info
>> >> >> >> but not
>> >> >> >> findService().
>> >> >> >>
>> >> >> >> I gave privileged access to my webapp as well.
>> >> >> >>
>> >> >> >> Can someone shed some light on this behavior?
>> >> >> >>
>> >> >> >> Thanks!
>> >> >> >> Sathija.
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> -
>> >> >> >> To start a new topic, e-mail: users@tomcat.apache.org
>> >> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> >> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >> >> >>
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >> > --
>> >> >> > When we invent time, we invent death.
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> -
>> >> >> To start a new topic, e-mail: users@tomcat.apache.org
>> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> > --
>> >> > When we invent time, we invent death.
>> >> >
>> >>
>> >>
>> >>
>> >> -
>> >> To start a new topic, e-mail: users@tomcat.apache.org
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>> > --
>> > When we invent time, we invent death.
>> >
>>
>>
>>
>> -
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> When we invent time, we invent death.
>



-
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: load files on tomcat

2006-10-13 Thread Mark Miller

,
you could use ServletContext.getRealPath( ).  That will return the
absolute path to the file, but only if the webapp isn't packed up as .war.

--David



Why is this the case? Doesn't Tomcat extract to war to a webapp/warname
folder when it first accesses it?

- Mark


Re: Retrieving tomcat realm from org.apache.catalina.Server object

2006-10-13 Thread Li

where you set your web context parameter?

On 10/14/06, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:


Nope, nothing in the logs.
But I have a feeling its something to do with permissions.
I've given privilged access to the webapp, cant think of anything else.
Another weird thing is, whether I set the context's privileged="true" or
"false" it behaves the same way

I am using Tomcat 5.5 , has anything changed since earlier versions in
this regard?



> Is there any error info in log files? Would it be permission problem?
...
> make sure all needed tomcat libs are readable by your webapp ...
>
> On 10/13/06, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>>
>> yes, it does look ok except for the findServices().
>> In fact, as I mentioned earlier i tried calling
>> server.getGlobalNamingResources(), getPort(), getInfo() on the server
>> and they all seem to return the right stuff.
>> Its just the services.
>>
>> I've set privileged="true" on my webapp context.
>>
>> Can't figure out if I missed anything else.
>>
>>
>> > is the server instance ok?
>> >
>> > On 10/13/06, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>> >>
>> >> I've tried that too.
>> >> findServices() returns an array of length 0.
>> >>
>> >>
>> >>
>> >> > I dont see any problem,
>> >> >>In fact, server.findServices() always returns an empty array of
>> >> services.
>> >> >>But my server.xml does define a Catalina service.
>> >> > try to use findServices() and get first service of the service
array
>> and
>> >> see
>> >> > if still null ...
>> >> >
>> >> >
>> >> >
>> >> > On 10/13/06, Sathija Pavuluri <[EMAIL PROTECTED]>
wrote:
>> >> >>
>> >> >> Hello,
>> >> >>
>> >> >> I would like to retrieve the tomcat realm object from the Server
>> >> object.
>> >> >> Below is the code snippet I use ...
>> >> >>
>> >> >> __
>> >> >>
>> >> >> Server server = ServerFactory.getServer();
>> >> >> Service service = server.findService("Catalina");
>> >> >> Engine engine = (Engine) service.getContainer();
>> >> >> //engine.getRealm();
>> >> >>
>> >> >> Host host = (Host) engine.findChild(engine.getDefaultHost());
>> >> >> Context context = (Context) host.findChild("enetaware");
>> >> >> Realm realm = context.getRealm();
>> >> >> ___
>> >> >>
>> >> >> But at line 2 here server.findService returns a null.
>> >> >> In fact, server.findServices() always returns an empty array of
>> >> services.
>> >> >> But my server.xml does define a Catalina service.
>> >> >>
>> >> >> Other methods like server.getGlobalNamingResources() do return
some
>> >> info
>> >> >> but not
>> >> >> findService().
>> >> >>
>> >> >> I gave privileged access to my webapp as well.
>> >> >>
>> >> >> Can someone shed some light on this behavior?
>> >> >>
>> >> >> Thanks!
>> >> >> Sathija.
>> >> >>
>> >> >>
>> >> >>
>> -
>> >> >> To start a new topic, e-mail: users@tomcat.apache.org
>> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> > --
>> >> > When we invent time, we invent death.
>> >> >
>> >>
>> >>
>> >>
>> >>
-
>> >> To start a new topic, e-mail: users@tomcat.apache.org
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>> > --
>> > When we invent time, we invent death.
>> >
>>
>>
>>
>> -
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> When we invent time, we invent death.
>



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





--
When we invent time, we invent death.


Re: Retrieving tomcat realm from org.apache.catalina.Server object

2006-10-13 Thread Sathija Pavuluri
Nope, nothing in the logs.
But I have a feeling its something to do with permissions.
I've given privilged access to the webapp, cant think of anything else.
Another weird thing is, whether I set the context's privileged="true" or 
"false" it behaves the same way

I am using Tomcat 5.5 , has anything changed since earlier versions in this 
regard?



> Is there any error info in log files? Would it be permission problem? ...
> make sure all needed tomcat libs are readable by your webapp ...
>
> On 10/13/06, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>>
>> yes, it does look ok except for the findServices().
>> In fact, as I mentioned earlier i tried calling
>> server.getGlobalNamingResources(), getPort(), getInfo() on the server
>> and they all seem to return the right stuff.
>> Its just the services.
>>
>> I've set privileged="true" on my webapp context.
>>
>> Can't figure out if I missed anything else.
>>
>>
>> > is the server instance ok?
>> >
>> > On 10/13/06, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>> >>
>> >> I've tried that too.
>> >> findServices() returns an array of length 0.
>> >>
>> >>
>> >>
>> >> > I dont see any problem,
>> >> >>In fact, server.findServices() always returns an empty array of
>> >> services.
>> >> >>But my server.xml does define a Catalina service.
>> >> > try to use findServices() and get first service of the service array
>> and
>> >> see
>> >> > if still null ...
>> >> >
>> >> >
>> >> >
>> >> > On 10/13/06, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>> >> >>
>> >> >> Hello,
>> >> >>
>> >> >> I would like to retrieve the tomcat realm object from the Server
>> >> object.
>> >> >> Below is the code snippet I use ...
>> >> >>
>> >> >> __
>> >> >>
>> >> >> Server server = ServerFactory.getServer();
>> >> >> Service service = server.findService("Catalina");
>> >> >> Engine engine = (Engine) service.getContainer();
>> >> >> //engine.getRealm();
>> >> >>
>> >> >> Host host = (Host) engine.findChild(engine.getDefaultHost());
>> >> >> Context context = (Context) host.findChild("enetaware");
>> >> >> Realm realm = context.getRealm();
>> >> >> ___
>> >> >>
>> >> >> But at line 2 here server.findService returns a null.
>> >> >> In fact, server.findServices() always returns an empty array of
>> >> services.
>> >> >> But my server.xml does define a Catalina service.
>> >> >>
>> >> >> Other methods like server.getGlobalNamingResources() do return some
>> >> info
>> >> >> but not
>> >> >> findService().
>> >> >>
>> >> >> I gave privileged access to my webapp as well.
>> >> >>
>> >> >> Can someone shed some light on this behavior?
>> >> >>
>> >> >> Thanks!
>> >> >> Sathija.
>> >> >>
>> >> >>
>> >> >>
>> -
>> >> >> To start a new topic, e-mail: users@tomcat.apache.org
>> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> > --
>> >> > When we invent time, we invent death.
>> >> >
>> >>
>> >>
>> >>
>> >> -
>> >> To start a new topic, e-mail: users@tomcat.apache.org
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>> > --
>> > When we invent time, we invent death.
>> >
>>
>>
>>
>> -
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> When we invent time, we invent death.
>



-
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: Large File (100MB+) Upload Issue

2006-10-13 Thread Stryjewski Lindsey
I wonder if it's because the form bean object (which has the FormFile)
has grown too large?


 
Regards,
Lindsey

-Original Message-
From: Stryjewski Lindsey [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 13, 2006 11:17 AM
To: Tomcat Users List
Subject: RE: Large File (100MB+) Upload Issue

Besides doing System.outs.  I'm trying to see if I can debug without
having to redeploy code and interrupt service. 


 
Regards,
Lindsey

-Original Message-
From: Stryjewski Lindsey [mailto:[EMAIL PROTECTED]
Sent: Friday, October 13, 2006 11:02 AM
To: Tomcat Users List
Subject: RE: Large File (100MB+) Upload Issue

Increasing logging (via the verbosity attribute) doesn't seem to do
anything.  Is there another way to get catalina.out to give me
something?

 
Regards,
Lindsey

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 12, 2006 3:46 PM
To: Tomcat Users List
Subject: Re: Large File (100MB+) Upload Issue

Honestly I don't know.  I'm not there.  Just offering a plausable
expanation -- sometime I get lucky and hit the nail on the head.  To be
fair, your original post stated failures were being observed with
uploads of 10-20MB while a 1.7MB worked. 

You might want to take a look at your logs though.  If they don't show
the problem, increase logging temporarily.

--David

Stryjewski Lindsey wrote:

>If this were the issue, why would a 22MB file (which I just tested) 
>work just fine?
>
> 
>Regards,
>Lindsey
>
>-Original Message-
>From: David Smith [mailto:[EMAIL PROTECTED]
>Sent: Thursday, October 12, 2006 3:20 PM
>To: Tomcat Users List
>Subject: Re: Large File (100MB+) Upload Issue
>
>Might want to take a look at
>http://tomcat.apache.org/tomcat-5.5-doc/config/http.html.
>
>Specifically setting the maxPostSize attribute of your connector in 
>server.xml.  As you can see from the docs, the default is about 2MB.
>
>--David
>
>
>  
>
>>-Original Message-
>>From: Stryjewski Lindsey [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, October 12, 2006 1:28 PM
>>To: users@tomcat.apache.org
>>Subject: Large File (100MB+) Upload Issue
>>
>>
>>Hello,
>>
>>We are experiencing a problem uploading large files through our web
>>portal.   We seem to have problems once the file gets to be 10-20MB.
>>The file I am currently trying is 100MB.
>>
>>When the user submits  via the web form, the file  appears to upload 
>>to
>>
>>
>
>  
>
>>a Tomcat temp file.  This upload completes (I know because I was doing

>>a "watch" on the directory) but then something fails and the Java code

>>(in the action class) which is supposed to execute doesn't.
>>
>>What is happening between the time  Tomcat finishes uploading the temp

>>file and the execute method is called?  Is there some validation being

>>done in Tomcat or Apache that prevents files of a certain size from
>>uploading?   Or maybe is there some timeout setting that would affect
>>this? 
>>
>>Also this could possibly be a system setting? 
>>
>>I know that the code and struts configuration is *not* the problem.
I
>>have tested the code in a dev environment and it works fine, even for 
>>a
>>
>>
>
>  
>
>>1.7GB file.  But obviously the settings for the webserver and system 
>>are different for production, though I'm not sure where to look.
>>
>>Here's what we are using:
>>
>>Linux
>>Struts 1.1
>>Apache 1.3.33
>>Tomcat 5.0
>>
>>
>>Regards,
>>Lindsey
>>
>>**
>>This e-mail is the property of Enron Corp. and/or its relevant
>>
>>
>affiliate and may contain confidential and privileged material for the 
>sole use of the intended recipient (s). Any review, use, distribution 
>or disclosure by others is strictly prohibited. If you are not the 
>intended recipient (or authorized to receive for the recipient), please

>contact the sender or reply to Enron Corp. at 
>[EMAIL PROTECTED] and delete all copies of the 
>message. This e-mail (and any attachments hereto) are not intended to 
>be an offer (or an acceptance) and do not create or evidence a binding 
>and enforceable contract between Enron Corp. (or any of its affiliates)

>and the intended recipient or any other party, and may not be relied on

>by anyone as the basis of a contract by estoppel or otherwise. Thank
you.
>  
>
>>**
>>
>>
>>-
>>To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
>>e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>> 
>>
>>
>>
>
>
>-
>To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
>e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>-
>To start a new topic, e-mail: users@tomcat.apache.org To unsu

Session lost when switching from https to http in Tomcat 4.1

2006-10-13 Thread Dosu Mahat

Greetings!! all.

I have a configuration where i use Apache in front of JBoss(which uses the 
tomcat4.1).  Recently, we set up  http/https switching using mod rewrite in 
Apache, to separate the secure content from insecure in our web app.


Problem that came up is that if session starts in htpps, the session looses 
data, when retrieving data in the insecure state.


The following was the most helpful link I found on this
http://mail-archives.apache.org/mod_mbox/tomcat-users/200505.mbox/[EMAIL 
PROTECTED]

After reviewing this, I still want to try to change the Tomcat code so that 
i can have one session regardless of http/https.


Can any one shed some light as to which Tomcat Classes i should be looking 
at??  Also,if there are any new changes on how Tomcat might be implementing 
this in the future, would be good to know.


(TIA)thanks in Advance

prayash  ([EMAIL PROTECTED])



-
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: Problem with HttpSessionListener

2006-10-13 Thread Caldarale, Charles R
> From: José Roberto Motta Garcia [mailto:[EMAIL PROTECTED] 
> Subject: Re: Problem with HttpSessionListener
> 
> Do you mean a servlet?

No, just Java classes.

> Wouldn't every app instantiate its own 
> object if this class is a simple one?

Only if they do a new; you can use static fields and methods or singletons to 
insure the same set of objects are used for all webapps.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat using MS SQL2000 Named Instance

2006-10-13 Thread Dan Decker
Karen - Thanks for your help.  The double backslash is now working.  I
had to upgrade the SQL 2000 named instance to SP4.
 
Dan Decker
Microsoft Dynamics GP Developer
www.Business-Computers.com 
(303)499-2039
 

-Original Message-
From: Karen Koch [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 12, 2006 11:58 AM
To: 'Tomcat Users List'
Cc: [EMAIL PROTECTED]
Subject: RE: Tomcat using MS SQL2000 Named Instance

Odd -- works for me using the double backslash just fine... 

You do seem to missing "microsoft:" in the beginning of the connection
string, not sure if that's a typo or not.  Mine began
"jdbc:microsoft:sqlserver:" etc.

Did not have to mess with the port numbers (this was one of the things
that
I tried along the way).

-Original Message-
From: Dan Decker [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 12, 2006 11:50 AM
To: 'Karen Koch'; 'Tomcat Users List'
Subject: RE: Tomcat using MS SQL2000 Named Instance

It does not work when I use \\GP90.

I tried the following and it works on the default instance.
jdbc:sqlserver://KEYSTONE:1433;databaseName=TWO


To determine if it is using the port #, I changed the port to 1430 and
it no
longer worked for the default instance.  This tells me it is looking at
the
port #.  Does the 2nd SQL2000 instance use a different port#?  If so
could I
change the port # to the one the 2nd instance uses and would it work?
How
do you determine what port the 2nd instance is using?  Thanks
 
Dan Decker
Microsoft Dynamics GP Developer
www.Business-Computers.com
(303)499-2039
 

-Original Message-
From: Karen Koch [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 12, 2006 8:29 AM
To: 'Tomcat Users List'
Cc: [EMAIL PROTECTED]
Subject: RE: Tomcat using MS SQL2000 Named Instance

Try this:

jdbc:microsoft:sqlserver://KEYSTONE\\GP90:1433;SelectMethod=cursor;Datab
aseN
ame=TWO

Note the double backslash before the instance name.

Struggled with this briefly myself recently -- the answer was in the PDF
help file for the JDBC driver.

Karen Koch

-Original Message-
From: Dan Decker [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 11, 2006 6:28 PM
To: users@tomcat.apache.org
Subject: Tomcat using MS SQL2000 Named Instance

I am trying to get Tomcat to connect to a MS SQL2000 Named instance
rather
than the default instance.
Using the following it connects to the database TWO on the default
server
KEYSTONE with no problems.
 
jdbc:sqlserver://KEYSTONE;databaseName=TWO
 
When I try to access the MS SQL2000 named instance KEYSTONE\GP90 it
still
connects to the default
 
jdbc:sqlserver://KEYSTONE;instanceName=GP90;databaseName=TWO
 
 
Dan Decker


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


-
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: Retrieving tomcat realm from org.apache.catalina.Server object

2006-10-13 Thread Li

Is there any error info in log files? Would it be permission problem? ...
make sure all needed tomcat libs are readable by your webapp ...

On 10/13/06, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:


yes, it does look ok except for the findServices().
In fact, as I mentioned earlier i tried calling
server.getGlobalNamingResources(), getPort(), getInfo() on the server
and they all seem to return the right stuff.
Its just the services.

I've set privileged="true" on my webapp context.

Can't figure out if I missed anything else.


> is the server instance ok?
>
> On 10/13/06, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>>
>> I've tried that too.
>> findServices() returns an array of length 0.
>>
>>
>>
>> > I dont see any problem,
>> >>In fact, server.findServices() always returns an empty array of
>> services.
>> >>But my server.xml does define a Catalina service.
>> > try to use findServices() and get first service of the service array
and
>> see
>> > if still null ...
>> >
>> >
>> >
>> > On 10/13/06, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Hello,
>> >>
>> >> I would like to retrieve the tomcat realm object from the Server
>> object.
>> >> Below is the code snippet I use ...
>> >>
>> >> __
>> >>
>> >> Server server = ServerFactory.getServer();
>> >> Service service = server.findService("Catalina");
>> >> Engine engine = (Engine) service.getContainer();
>> >> //engine.getRealm();
>> >>
>> >> Host host = (Host) engine.findChild(engine.getDefaultHost());
>> >> Context context = (Context) host.findChild("enetaware");
>> >> Realm realm = context.getRealm();
>> >> ___
>> >>
>> >> But at line 2 here server.findService returns a null.
>> >> In fact, server.findServices() always returns an empty array of
>> services.
>> >> But my server.xml does define a Catalina service.
>> >>
>> >> Other methods like server.getGlobalNamingResources() do return some
>> info
>> >> but not
>> >> findService().
>> >>
>> >> I gave privileged access to my webapp as well.
>> >>
>> >> Can someone shed some light on this behavior?
>> >>
>> >> Thanks!
>> >> Sathija.
>> >>
>> >>
>> >>
-
>> >> To start a new topic, e-mail: users@tomcat.apache.org
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>> > --
>> > When we invent time, we invent death.
>> >
>>
>>
>>
>> -
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> When we invent time, we invent death.
>



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





--
When we invent time, we invent death.


Re: load files on tomcat

2006-10-13 Thread David Smith
The problem is the "current directory" is the startup directory for 
tomcat.  In a webapp that might be running on several different 
installations, the current working directory is a moving target.


Given this is always used from an exploded webapp and not a .war file, 
you could use ServletContext.getRealPath( ).  That will return the 
absolute path to the file, but only if the webapp isn't packed up as .war.


--David

José Roberto Motta Garcia wrote:


Are u trying to access this image from a class or from a JSP? Please
correct me people, but the root path to JSP files is
/webapps/.

JR

harl3kin wrote:
 


hello alltogether,

i have a problem with accessing files deployed on tomcat. I want to access
an image which is stored in a "graphics" folder right below the "WEB-INF"
folder. I read that the tomcat-context has its start path on the "classes"
folder. So what i did to retrieve the image was:

Image image = Toolkit.getDefaultToolkit().getImage("/../graphics/toon.gif");

When I debugged I recongnized that the image width and height is -1, so i
figure I didn't load the image correctly. Do you have any suggestions what I
can do to make this work?

I appreciate your time,
Thorsten
 
   



 




-
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: load files on tomcat

2006-10-13 Thread José Roberto Motta Garcia
Are u trying to access this image from a class or from a JSP? Please
correct me people, but the root path to JSP files is
/webapps/.

JR

harl3kin wrote:
> hello alltogether,
>
> i have a problem with accessing files deployed on tomcat. I want to access
> an image which is stored in a "graphics" folder right below the "WEB-INF"
> folder. I read that the tomcat-context has its start path on the "classes"
> folder. So what i did to retrieve the image was:
>
> Image image = Toolkit.getDefaultToolkit().getImage("/../graphics/toon.gif");
>
> When I debugged I recongnized that the image width and height is -1, so i
> figure I didn't load the image correctly. Do you have any suggestions what I
> can do to make this work?
>
> I appreciate your time,
> Thorsten
>   

-- 
Jose Roberto M. Garcia
Analista de Sistemas - Grupo Banco de Dados
Fone: (12) 3186-8405   Fax: (12) 3101-2835
--
http://www.cptec.inpe.br 
http://www.inpe.br 


-
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: Problem with HttpSessionListener

2006-10-13 Thread José Roberto Motta Garcia
Hi chuck, do u know how to do that? It's what I'm trying to
>> do, to get a cross-app scope for customized management.
>> 
> If all you need are objects common to all web apps, classes placed in 
> shared/lib will suffice.
>   
Do you mean a servlet? Wouldn't every app instantiate its own object if
this class is a simple one?

Tks

-- 
Jose Roberto M. Garcia
Analista de Sistemas - Grupo Banco de Dados
Fone: (12) 3186-8405   Fax: (12) 3101-2835
--
http://www.cptec.inpe.br 
http://www.inpe.br 


-
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: Max Memory Reading

2006-10-13 Thread Caldarale, Charles R
> From: joon yoo [mailto:[EMAIL PROTECTED] 
> Subject: Re: Max Memory Reading
> 
> is it a windows limitation or an intel x86 limitation?

Windows, due to limiting an individual process' virtual space to 2 GB.
(Some versions of Windows Server allow configuration of a 3 GB process
space, but that option is not often used.)  This 2 GB is usually
somewhat fragmented due to DLLs being loaded in odd places; the JVM heap
requires contiguous virtual space, so that's why the max heap size on
Windows is around 1.5 GB.

I don't know what virtual space BSD Linux allocates for each process,
nor whether or not there are fragmentation issues with that space.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



load files on tomcat

2006-10-13 Thread harl3kin

hello alltogether,

i have a problem with accessing files deployed on tomcat. I want to access
an image which is stored in a "graphics" folder right below the "WEB-INF"
folder. I read that the tomcat-context has its start path on the "classes"
folder. So what i did to retrieve the image was:

Image image = Toolkit.getDefaultToolkit().getImage("/../graphics/toon.gif");

When I debugged I recongnized that the image width and height is -1, so i
figure I didn't load the image correctly. Do you have any suggestions what I
can do to make this work?

I appreciate your time,
Thorsten
-- 
View this message in context: 
http://www.nabble.com/load-files-on-tomcat-tf2438873.html#a6800963
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
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: Max Memory Reading

2006-10-13 Thread joon yoo

is it a windows limitation or an intel x86 limitation?  i.e., if i had
installed linux or BSD instead of win 2000, would i have been better
off memory management wise?

joon

On 10/13/06, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:

> From: Andrew Miehs [mailto:[EMAIL PROTECTED]
> Subject: Re: Max Memory Reading
>
> Nope - the 32Bit JVM can only deal with about 1.5GB Ram

That's a Windows, not JVM, limitation.  The virtual memory setup is
different on Solaris, so higher values are possible.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
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: Max Memory Reading

2006-10-13 Thread Leon Rosenberg

On 10/13/06, Alan Flisch <[EMAIL PROTECTED]> wrote:


The document Leon thought was outdated was this one -
http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html#0.0.0.%20Total%
20Heap%7Coutline - which also relates to  5.0!  I'm guessing from the
evidence that this doc is simply wrong.


yes thats the one.
Maybe wrong is a too hard word, but the"default  64 MB" it talks about
seem to be a special case not applicable as default :-)
regards
Leon



Regards,
Alan

On Fri, 2006-10-13 at 09:41 -0500, Caldarale, Charles R wrote:

> > From: Alan Flisch [mailto:[EMAIL PROTECTED]
> > Subject: RE: Max Memory Reading
> >
> > It seems to be contradicted by this document
> > http://java.sun.com/j2se/1.5.0/docs/guide/vm/gc-ergonomics.html and by
> > my experience of seeing a near 1GB heap with no -Xmx option set
> > anywhere.
>
> Maybe I'm confused by which doc Leon thought was outdated (the perils of
> doing top-posting).  The doc referenced above matches the 5.0 code.
>
>  - 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 start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]





This e-mail and any accompanying documents contain confidential information 
intended for a specific individual which is private and protected by law.
If you are not the intended recipient, any disclosure, copying, distribution or 
other use of this information is strictly prohibited.
You are also requested to advise us immediately if you receive information 
which is not addressed to you.
beCogent is Authorised and Regulated by the Financial Services Authority.
*



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



Perfect, provided 'virgin' install on XP- ClassNotFoundException on 'used' 2K...

2006-10-13 Thread Rico
Hello Everyone,

On Windows 2000 where over the past couple of years I had installed Tomcat4 and 
Tomcat4.1,
running Tomcat5.0.28 as a service now gives:
==
ERROR reading D:\jakarta-tomcat-5.0.28\conf\server.xml
At Line 24 /Server/Listener/ 
className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0 

Catalina.start: java.lang.ClassNotFoundException: 
org.apache.catalina.mbeans.ServerLifecycleListener
java.lang.ClassNotFoundException: 
org.apache.catalina.mbeans.ServerLifecycleListener
==

I've been quite mad about this, I've got to admit. Trying to get Tomcat to work 
has gotten in the way of
learning anything 'productive' yet. I've looked all over the place, and others 
have run into this issue, but
nobody could offer a solution or people just ignored the query, and I wonder if 
it's because it's too obvious
or they just couldn't reproduce it.
If I'm missing something very obvious here, I am sincerely sorry but I'm not 
seeing it yet since yesterday.

The good news is that things Finally! worked fine when I thought of trying on 
XP on my other hard disk
where Tomcat had never set foot. That helped me calm down a lot.. I mean, Matt 
Raible only gave
SiteMesh a 10-mins test, didn't he? The pressure on me is what good will I ever 
be if I haven't gotten
anything done in 24hours?!

Now.. this problem seems to be related to something about my Win2K PC, and 
probably my previous
installations of Tomcat, which I have removed by now, and/or my previous JDK's 
and JRE's.
But I don't know what, and was hoping that somebody here could shed some light 
on where I should be looking and what I should be doing?
Thanks.

Rico.





-
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: Retrieving tomcat realm from org.apache.catalina.Server object

2006-10-13 Thread Sathija Pavuluri
yes, it does look ok except for the findServices().
In fact, as I mentioned earlier i tried calling 
server.getGlobalNamingResources(), getPort(), getInfo() on the server
and they all seem to return the right stuff.
Its just the services.

I've set privileged="true" on my webapp context.

Can't figure out if I missed anything else.


> is the server instance ok?
>
> On 10/13/06, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>>
>> I've tried that too.
>> findServices() returns an array of length 0.
>>
>>
>>
>> > I dont see any problem,
>> >>In fact, server.findServices() always returns an empty array of
>> services.
>> >>But my server.xml does define a Catalina service.
>> > try to use findServices() and get first service of the service array and
>> see
>> > if still null ...
>> >
>> >
>> >
>> > On 10/13/06, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Hello,
>> >>
>> >> I would like to retrieve the tomcat realm object from the Server
>> object.
>> >> Below is the code snippet I use ...
>> >>
>> >> __
>> >>
>> >> Server server = ServerFactory.getServer();
>> >> Service service = server.findService("Catalina");
>> >> Engine engine = (Engine) service.getContainer();
>> >> //engine.getRealm();
>> >>
>> >> Host host = (Host) engine.findChild(engine.getDefaultHost());
>> >> Context context = (Context) host.findChild("enetaware");
>> >> Realm realm = context.getRealm();
>> >> ___
>> >>
>> >> But at line 2 here server.findService returns a null.
>> >> In fact, server.findServices() always returns an empty array of
>> services.
>> >> But my server.xml does define a Catalina service.
>> >>
>> >> Other methods like server.getGlobalNamingResources() do return some
>> info
>> >> but not
>> >> findService().
>> >>
>> >> I gave privileged access to my webapp as well.
>> >>
>> >> Can someone shed some light on this behavior?
>> >>
>> >> Thanks!
>> >> Sathija.
>> >>
>> >>
>> >> -
>> >> To start a new topic, e-mail: users@tomcat.apache.org
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>> > --
>> > When we invent time, we invent death.
>> >
>>
>>
>>
>> -
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> When we invent time, we invent death.
>



-
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: Retrieving tomcat realm from org.apache.catalina.Server object

2006-10-13 Thread Li

is the server instance ok?

On 10/13/06, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:


I've tried that too.
findServices() returns an array of length 0.



> I dont see any problem,
>>In fact, server.findServices() always returns an empty array of
services.
>>But my server.xml does define a Catalina service.
> try to use findServices() and get first service of the service array and
see
> if still null ...
>
>
>
> On 10/13/06, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>>
>> Hello,
>>
>> I would like to retrieve the tomcat realm object from the Server
object.
>> Below is the code snippet I use ...
>>
>> __
>>
>> Server server = ServerFactory.getServer();
>> Service service = server.findService("Catalina");
>> Engine engine = (Engine) service.getContainer();
>> //engine.getRealm();
>>
>> Host host = (Host) engine.findChild(engine.getDefaultHost());
>> Context context = (Context) host.findChild("enetaware");
>> Realm realm = context.getRealm();
>> ___
>>
>> But at line 2 here server.findService returns a null.
>> In fact, server.findServices() always returns an empty array of
services.
>> But my server.xml does define a Catalina service.
>>
>> Other methods like server.getGlobalNamingResources() do return some
info
>> but not
>> findService().
>>
>> I gave privileged access to my webapp as well.
>>
>> Can someone shed some light on this behavior?
>>
>> Thanks!
>> Sathija.
>>
>>
>> -
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> When we invent time, we invent death.
>



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





--
When we invent time, we invent death.


Re: Retrieving tomcat realm from org.apache.catalina.Server object

2006-10-13 Thread Sathija Pavuluri
I've tried that too.
findServices() returns an array of length 0.



> I dont see any problem,
>>In fact, server.findServices() always returns an empty array of services.
>>But my server.xml does define a Catalina service.
> try to use findServices() and get first service of the service array and see
> if still null ...
>
>
>
> On 10/13/06, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>>
>> Hello,
>>
>> I would like to retrieve the tomcat realm object from the Server object.
>> Below is the code snippet I use ...
>>
>> __
>>
>> Server server = ServerFactory.getServer();
>> Service service = server.findService("Catalina");
>> Engine engine = (Engine) service.getContainer();
>> //engine.getRealm();
>>
>> Host host = (Host) engine.findChild(engine.getDefaultHost());
>> Context context = (Context) host.findChild("enetaware");
>> Realm realm = context.getRealm();
>> ___
>>
>> But at line 2 here server.findService returns a null.
>> In fact, server.findServices() always returns an empty array of services.
>> But my server.xml does define a Catalina service.
>>
>> Other methods like server.getGlobalNamingResources() do return some info
>> but not
>> findService().
>>
>> I gave privileged access to my webapp as well.
>>
>> Can someone shed some light on this behavior?
>>
>> Thanks!
>> Sathija.
>>
>>
>> -
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> When we invent time, we invent death.
>



-
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: Retrieving tomcat realm from org.apache.catalina.Server object

2006-10-13 Thread Li

I dont see any problem,

In fact, server.findServices() always returns an empty array of services.
But my server.xml does define a Catalina service.

try to use findServices() and get first service of the service array and see
if still null ...



On 10/13/06, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:


Hello,

I would like to retrieve the tomcat realm object from the Server object.
Below is the code snippet I use ...

__

Server server = ServerFactory.getServer();
Service service = server.findService("Catalina");
Engine engine = (Engine) service.getContainer();
//engine.getRealm();

Host host = (Host) engine.findChild(engine.getDefaultHost());
Context context = (Context) host.findChild("enetaware");
Realm realm = context.getRealm();
___

But at line 2 here server.findService returns a null.
In fact, server.findServices() always returns an empty array of services.
But my server.xml does define a Catalina service.

Other methods like server.getGlobalNamingResources() do return some info
but not
findService().

I gave privileged access to my webapp as well.

Can someone shed some light on this behavior?

Thanks!
Sathija.


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





--
When we invent time, we invent death.


Retrieving tomcat realm from org.apache.catalina.Server object

2006-10-13 Thread Sathija Pavuluri
Hello,

I would like to retrieve the tomcat realm object from the Server object.
Below is the code snippet I use ...

__

Server server = ServerFactory.getServer();
Service service = server.findService("Catalina");
Engine engine = (Engine) service.getContainer();
//engine.getRealm();

Host host = (Host) engine.findChild(engine.getDefaultHost());
Context context = (Context) host.findChild("enetaware");
Realm realm = context.getRealm();
___

But at line 2 here server.findService returns a null.
In fact, server.findServices() always returns an empty array of services.
But my server.xml does define a Catalina service.

Other methods like server.getGlobalNamingResources() do return some info but not
findService().

I gave privileged access to my webapp as well.

Can someone shed some light on this behavior?

Thanks!
Sathija.


-
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: Large File (100MB+) Upload Issue

2006-10-13 Thread Stryjewski Lindsey
Besides doing System.outs.  I'm trying to see if I can debug without
having to redeploy code and interrupt service. 


 
Regards,
Lindsey

-Original Message-
From: Stryjewski Lindsey [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 13, 2006 11:02 AM
To: Tomcat Users List
Subject: RE: Large File (100MB+) Upload Issue

Increasing logging (via the verbosity attribute) doesn't seem to do
anything.  Is there another way to get catalina.out to give me
something?

 
Regards,
Lindsey

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 12, 2006 3:46 PM
To: Tomcat Users List
Subject: Re: Large File (100MB+) Upload Issue

Honestly I don't know.  I'm not there.  Just offering a plausable
expanation -- sometime I get lucky and hit the nail on the head.  To be
fair, your original post stated failures were being observed with
uploads of 10-20MB while a 1.7MB worked. 

You might want to take a look at your logs though.  If they don't show
the problem, increase logging temporarily.

--David

Stryjewski Lindsey wrote:

>If this were the issue, why would a 22MB file (which I just tested) 
>work just fine?
>
> 
>Regards,
>Lindsey
>
>-Original Message-
>From: David Smith [mailto:[EMAIL PROTECTED]
>Sent: Thursday, October 12, 2006 3:20 PM
>To: Tomcat Users List
>Subject: Re: Large File (100MB+) Upload Issue
>
>Might want to take a look at
>http://tomcat.apache.org/tomcat-5.5-doc/config/http.html.
>
>Specifically setting the maxPostSize attribute of your connector in 
>server.xml.  As you can see from the docs, the default is about 2MB.
>
>--David
>
>
>  
>
>>-Original Message-
>>From: Stryjewski Lindsey [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, October 12, 2006 1:28 PM
>>To: users@tomcat.apache.org
>>Subject: Large File (100MB+) Upload Issue
>>
>>
>>Hello,
>>
>>We are experiencing a problem uploading large files through our web
>>portal.   We seem to have problems once the file gets to be 10-20MB.
>>The file I am currently trying is 100MB.
>>
>>When the user submits  via the web form, the file  appears to upload 
>>to
>>
>>
>
>  
>
>>a Tomcat temp file.  This upload completes (I know because I was doing

>>a "watch" on the directory) but then something fails and the Java code

>>(in the action class) which is supposed to execute doesn't.
>>
>>What is happening between the time  Tomcat finishes uploading the temp

>>file and the execute method is called?  Is there some validation being

>>done in Tomcat or Apache that prevents files of a certain size from
>>uploading?   Or maybe is there some timeout setting that would affect
>>this? 
>>
>>Also this could possibly be a system setting? 
>>
>>I know that the code and struts configuration is *not* the problem.
I
>>have tested the code in a dev environment and it works fine, even for 
>>a
>>
>>
>
>  
>
>>1.7GB file.  But obviously the settings for the webserver and system 
>>are different for production, though I'm not sure where to look.
>>
>>Here's what we are using:
>>
>>Linux
>>Struts 1.1
>>Apache 1.3.33
>>Tomcat 5.0
>>
>>
>>Regards,
>>Lindsey
>>
>>**
>>This e-mail is the property of Enron Corp. and/or its relevant
>>
>>
>affiliate and may contain confidential and privileged material for the 
>sole use of the intended recipient (s). Any review, use, distribution 
>or disclosure by others is strictly prohibited. If you are not the 
>intended recipient (or authorized to receive for the recipient), please

>contact the sender or reply to Enron Corp. at 
>[EMAIL PROTECTED] and delete all copies of the 
>message. This e-mail (and any attachments hereto) are not intended to 
>be an offer (or an acceptance) and do not create or evidence a binding 
>and enforceable contract between Enron Corp. (or any of its affiliates)

>and the intended recipient or any other party, and may not be relied on

>by anyone as the basis of a contract by estoppel or otherwise. Thank
you.
>  
>
>>**
>>
>>
>>-
>>To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
>>e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>> 
>>
>>
>>
>
>
>-
>To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
>e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>-
>To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
>e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>  
>


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

RE: Large File (100MB+) Upload Issue

2006-10-13 Thread Stryjewski Lindsey
Increasing logging (via the verbosity attribute) doesn't seem to do
anything.  Is there another way to get catalina.out to give me
something?

 
Regards,
Lindsey

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 12, 2006 3:46 PM
To: Tomcat Users List
Subject: Re: Large File (100MB+) Upload Issue

Honestly I don't know.  I'm not there.  Just offering a plausable
expanation -- sometime I get lucky and hit the nail on the head.  To be
fair, your original post stated failures were being observed with
uploads of 10-20MB while a 1.7MB worked. 

You might want to take a look at your logs though.  If they don't show
the problem, increase logging temporarily.

--David

Stryjewski Lindsey wrote:

>If this were the issue, why would a 22MB file (which I just tested) 
>work just fine?
>
> 
>Regards,
>Lindsey
>
>-Original Message-
>From: David Smith [mailto:[EMAIL PROTECTED]
>Sent: Thursday, October 12, 2006 3:20 PM
>To: Tomcat Users List
>Subject: Re: Large File (100MB+) Upload Issue
>
>Might want to take a look at
>http://tomcat.apache.org/tomcat-5.5-doc/config/http.html.
>
>Specifically setting the maxPostSize attribute of your connector in 
>server.xml.  As you can see from the docs, the default is about 2MB.
>
>--David
>
>
>  
>
>>-Original Message-
>>From: Stryjewski Lindsey [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, October 12, 2006 1:28 PM
>>To: users@tomcat.apache.org
>>Subject: Large File (100MB+) Upload Issue
>>
>>
>>Hello,
>>
>>We are experiencing a problem uploading large files through our web
>>portal.   We seem to have problems once the file gets to be 10-20MB.
>>The file I am currently trying is 100MB.
>>
>>When the user submits  via the web form, the file  appears to upload 
>>to
>>
>>
>
>  
>
>>a Tomcat temp file.  This upload completes (I know because I was doing

>>a "watch" on the directory) but then something fails and the Java code

>>(in the action class) which is supposed to execute doesn't.
>>
>>What is happening between the time  Tomcat finishes uploading the temp

>>file and the execute method is called?  Is there some validation being

>>done in Tomcat or Apache that prevents files of a certain size from
>>uploading?   Or maybe is there some timeout setting that would affect
>>this? 
>>
>>Also this could possibly be a system setting? 
>>
>>I know that the code and struts configuration is *not* the problem.
I
>>have tested the code in a dev environment and it works fine, even for 
>>a
>>
>>
>
>  
>
>>1.7GB file.  But obviously the settings for the webserver and system 
>>are different for production, though I'm not sure where to look.
>>
>>Here's what we are using:
>>
>>Linux
>>Struts 1.1
>>Apache 1.3.33
>>Tomcat 5.0
>>
>>
>>Regards,
>>Lindsey
>>
>>**
>>This e-mail is the property of Enron Corp. and/or its relevant
>>
>>
>affiliate and may contain confidential and privileged material for the 
>sole use of the intended recipient (s). Any review, use, distribution 
>or disclosure by others is strictly prohibited. If you are not the 
>intended recipient (or authorized to receive for the recipient), please

>contact the sender or reply to Enron Corp. at 
>[EMAIL PROTECTED] and delete all copies of the 
>message. This e-mail (and any attachments hereto) are not intended to 
>be an offer (or an acceptance) and do not create or evidence a binding 
>and enforceable contract between Enron Corp. (or any of its affiliates)

>and the intended recipient or any other party, and may not be relied on

>by anyone as the basis of a contract by estoppel or otherwise. Thank
you.
>  
>
>>**
>>
>>
>>-
>>To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
>>e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>> 
>>
>>
>>
>
>
>-
>To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
>e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>-
>To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, 
>e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>  
>


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

-
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: Problem with HttpSessionListener

2006-10-13 Thread Caldarale, Charles R
> From: José Roberto Motta Garcia [mailto:[EMAIL PROTECTED] 
> Subject: Re: Problem with HttpSessionListener
> 
> "No one was asking for cross-application scoping."
> 
> Hi chuck, do u know how to do that? It's what I'm trying to 
> do, to get a cross-app scope for customized management.

If all you need are objects common to all web apps, classes placed in 
shared/lib will suffice.

Haven't done the following myself, but for something more extensive you might 
want to look at the doc for the crossContext attribute of the  element:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

I would think you would also want to enable the SingleSignon valve in the 
conf/server.xml file.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Max Memory Reading

2006-10-13 Thread Alan Flisch

The document Leon thought was outdated was this one -
http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html#0.0.0.%20Total%
20Heap%7Coutline - which also relates to  5.0!  I'm guessing from the
evidence that this doc is simply wrong.  

Regards,
Alan

On Fri, 2006-10-13 at 09:41 -0500, Caldarale, Charles R wrote:

> > From: Alan Flisch [mailto:[EMAIL PROTECTED] 
> > Subject: RE: Max Memory Reading
> > 
> > It seems to be contradicted by this document
> > http://java.sun.com/j2se/1.5.0/docs/guide/vm/gc-ergonomics.html and by
> > my experience of seeing a near 1GB heap with no -Xmx option set
> > anywhere.
> 
> Maybe I'm confused by which doc Leon thought was outdated (the perils of
> doing top-posting).  The doc referenced above matches the 5.0 code.
> 
>  - 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 start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]





This e-mail and any accompanying documents contain confidential information 
intended for a specific individual which is private and protected by law.
If you are not the intended recipient, any disclosure, copying, distribution or 
other use of this information is strictly prohibited.
You are also requested to advise us immediately if you receive information 
which is not addressed to you.
beCogent is Authorised and Regulated by the Financial Services Authority.
*

RE: Max Memory Reading

2006-10-13 Thread Caldarale, Charles R
> From: Alan Flisch [mailto:[EMAIL PROTECTED] 
> Subject: RE: Max Memory Reading
> 
> It seems to be contradicted by this document
> http://java.sun.com/j2se/1.5.0/docs/guide/vm/gc-ergonomics.html and by
> my experience of seeing a near 1GB heap with no -Xmx option set
> anywhere.

Maybe I'm confused by which doc Leon thought was outdated (the perils of
doing top-posting).  The doc referenced above matches the 5.0 code.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Max Memory Reading

2006-10-13 Thread Alan Flisch

It seems to be contradicted by this document
http://java.sun.com/j2se/1.5.0/docs/guide/vm/gc-ergonomics.html and by
my experience of seeing a near 1GB heap with no -Xmx option set
anywhere.

It's a little on the confusing side!


On Fri, 2006-10-13 at 09:31 -0500, Caldarale, Charles R wrote:

> > From: Leon Rosenberg [mailto:[EMAIL PROTECTED] 
> > Subject: Re: Max Memory Reading
> > 
> > unfortunately google is not your friend in this case and the document
> > seems outdated :-)
> >
> > http://java.sun.com/docs/hotspot/gc5.0/ergo5.html
> 
> Why do you think it's outdated?  What's described is what the current
> 5.0 code does.
> 
>  - 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 start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

Alan Flisch
Senior Developer
beCogent Ltd.
www.beCogent.com

T: +44 (0)1236 628 113
F: +44 (0)1236 628 101
E: [EMAIL PROTECTED] 



This e-mail and any accompanying documents contain confidential information 
intended for a specific individual which is private and protected by law.
If you are not the intended recipient, any disclosure, copying, distribution or 
other use of this information is strictly prohibited.
You are also requested to advise us immediately if you receive information 
which is not addressed to you.
beCogent is Authorised and Regulated by the Financial Services Authority.
*

RE: Max Memory Reading

2006-10-13 Thread Caldarale, Charles R
> From: Leon Rosenberg [mailto:[EMAIL PROTECTED] 
> Subject: Re: Max Memory Reading
> 
> unfortunately google is not your friend in this case and the document
> seems outdated :-)
>
> http://java.sun.com/docs/hotspot/gc5.0/ergo5.html

Why do you think it's outdated?  What's described is what the current
5.0 code does.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Max Memory Reading

2006-10-13 Thread Caldarale, Charles R
> From: Leon Rosenberg [mailto:[EMAIL PROTECTED] 
> Subject: Re: Max Memory Reading
> 
> On the other side, if you are on 64bit OS (and you probably are, or
> how could you adress 16GB otherwise), why not using 64bit jdk?

Did Solaris 5.9 have a 64-bit version?  It's a bit on the old side, so I
doubt it.

Virtual memory addressing (32-bit pointers) has no bearing on real
memory size limits - that's a function of the number of physical address
lines coming out of the CPU and the size of fields in the page table.
Large 32-bit Sparc servers have allowed more than 4 GB real memory for a
long, long time.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Max Memory Reading

2006-10-13 Thread Caldarale, Charles R
> From: Alan Flisch [mailto:[EMAIL PROTECTED] 
> Subject: Re: Max Memory Reading
> 
> I thought you were safe up to 4000m (in practice a little 
> lower) for the 32 bit VM.

Depends on the OS.  For Windows, the limit is around 1.5 - 1.6 GB, since
the JVM code, heap, several ancilliary DLLs, and other junk has to fit
inside a fragmented 2 GB virtual space.  However, this is Solaris 5.9,
and a somewhat larger limit can be used here.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Max Memory Reading

2006-10-13 Thread Caldarale, Charles R
> From: Andrew Miehs [mailto:[EMAIL PROTECTED] 
> Subject: Re: Max Memory Reading
> 
> Nope - the 32Bit JVM can only deal with about 1.5GB Ram

That's a Windows, not JVM, limitation.  The virtual memory setup is
different on Solaris, so higher values are possible.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat Embedded and Server.xml

2006-10-13 Thread Miguel Correia Ricardo

Oh, well... I'm reading the connector ports from the server.xml with a
my own custom SAXParser... Didn't see anyother way of doing it...
Apreciate all the help.

On 10/13/06, Mark Miller <[EMAIL PROTECTED]> wrote:

I am using embedded tomcat and I do not use server.xml. Unfortunately, I am
away from home until Sunday. I will give you more info then.

- Mark

On 10/13/06, Miguel Correia Ricardo <[EMAIL PROTECTED]> wrote:
>
> But, do you use server.xml to configure tomcat embedded? For example,
> for the connector ports? If so, how may I ask?
>
> Best regards,
> Miguel
>
> On 10/12/06, Andre Prasetya <[EMAIL PROTECTED]> wrote:
> > Hi Miguel, I m using tomcat embedded but i still use server.xml too
> >
> > -Andre-
> >
> >
> > On 10/10/06, Miguel Correia Ricardo <[EMAIL PROTECTED]> wrote:
> > >
> > > Hello,
> > >
> > > I'm having a doubt that is bugging me. And I need to solve it also.
> > > Everywhere I look, it says that by using Tomcat Embedded I don't need
> > > the server.xml configuration file. Ok, I can understand why... But,
> > > what about the Connector ports, how do I know at advance wich one are
> > > busy or not... I want to be able to use Tomcat Embedded and still use
> > > the server.xml configuration file, for the most various reasons, one
> > > of them is to define the Connector ports.
> > >
> > > Is there any class in the tomcat *.jars that will help me achieve it
> > > easily? Or I have to follow the same thing that Catalina is doing,
> > > that is, creating a Digest object, set the Sax rules, and so on...
> > >
> > > Hope you can help. And thanks in advance.
> > >
> > > My best regards,
> > > Miguel Correia Ricardo
> > >
> > > -
> > > To start a new topic, e-mail: users@tomcat.apache.org
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > -Andre-
> >
> > PCs are like air conditioner, if you open Windows, they don't work
> >
> >
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>




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



Tomcat / Connector failure issues

2006-10-13 Thread Sean Overby
Issues:
 
We've been experiencing some issues with our IIS --> Connector --> Tomcat
setups, 
primarily intermittent 'white pages' where the HTTP response is blank, and
also
this morning an instance where I was forced to restart IIS / IIS admin
service 
in order to get the connection to Tomcat working again, that instance showed
connector log messages of: factory for lb failed for wlb. 
 
Additionally I'm seeing both connector and Tomcat log messages and stack
traces 
that don't seem to manifest a visible problem but are concerning to me. 
 
This email is structured with a layout of our system setup, followed by
examples 
of the log messages of concern, followed by our configuration files. Any
assistance 
in understanding what these log messages mean or any pointers on how to fix
them 
would be most appreciated. 
 
Thanks for your time,
 
Sean Overby
Solvepoint Corporation
 
 
 
System Setup:
 
- Front End:
   Two IIS
  - Web Server 1, IIS 6.0 on Windows 2003, Connector version 1.2.19
  - Web Server 2, IIS 5.x on Windows 2000, Connector version 1.2.19
  
   Web Server 1 and 2 sit inside a DMZ, firewall between both IIS and all
Tomcat Servers.
   
- Back End:
 
  Two Tomcat Servers (in different network segments)
 - Tomcat 1, Tomcat 5.5 on Windows 2003.
 - Tomcat 2, Tomcat 5.5 on Windows 2003.
  
  
Connector Log Messages 
--
 
-- These message corresponded with a complete failure of all servlet
requests with a 
-- 'Page Not Found' error, restarted IIS admin service / IIS website to fix.

[Fri Oct 13 08:04:41 2006] [3620:2044] [error] jk_worker.c (146): factory
for lb failed for wlb
[Fri Oct 13 08:04:41 2006] [3620:2044] [error] jk_worker.c (256): failed to
create worker wlb
[Fri Oct 13 08:22:51 2006] [2812:2300] [error] jk_worker.c (146): factory
for lb failed for wlb
[Fri Oct 13 08:22:51 2006] [2812:2300] [error] jk_worker.c (256): failed to
create worker wlb
[Fri Oct 13 08:28:50 2006] [2348:2164] [error] jk_worker.c (146): factory
for lb failed for wlb
[Fri Oct 13 08:28:50 2006] [2348:2164] [error] jk_worker.c (256): failed to
create worker wlb
 

-- These messages happen intermittently, and do not *seem* to cause any
visible issues
[Fri Oct 13 07:40:44 2006] [0332:2032] [error] jk_ajp_common.c (947):
(wlweb1) can't receive the response message from tomcat, network problems or
tomcat is down (192.168.1.215:8011), err=-54
[Fri Oct 13 07:40:44 2006] [0332:2032] [error] jk_ajp_common.c (1536):
(wlweb1) Tomcat is down or refused connection. No response has been sent to
the client (yet)
[Fri Oct 13 07:40:44 2006] [0332:1796] [error] jk_ajp_common.c (947):
(wlweb1) can't receive the response message from tomcat, network problems or
tomcat is down (192.168.1.215:8011), err=-54
[Fri Oct 13 07:40:44 2006] [0332:1796] [error] jk_ajp_common.c (1536):
(wlweb1) Tomcat is down or refused connection. No response has been sent to
the client (yet)
[Fri Oct 13 07:40:45 2006] [0332:2032] [error] jk_ajp_common.c (1879):
(wlweb1) Connecting to tomcat failed. Tomcat is probably not started or is
listening on the wrong port
[Fri Oct 13 07:40:45 2006] [0332:1796] [error] jk_ajp_common.c (1879):
(wlweb1) Connecting to tomcat failed. Tomcat is probably not started or is
listening on the wrong port
[Fri Oct 13 07:41:44 2006] [0332:2220] [error] jk_ajp_common.c (947):
(wlweb2) can't receive the response message from tomcat, network problems or
tomcat is down (192.168.1.195:8012), err=-54
[Fri Oct 13 07:41:44 2006] [0332:2220] [error] jk_ajp_common.c (1536):
(wlweb2) Tomcat is down or refused connection. No response has been sent to
the client (yet)
[Fri Oct 13 07:41:45 2006] [0332:2220] [error] jk_ajp_common.c (1879):
(wlweb2) Connecting to tomcat failed. Tomcat is probably not started or is
listening on the wrong port
 

Tomcat stdout.log messages:
---
 
- Interesting thing about this message is that the Tomcat 2 server gets
these
- messages at a rate 50 times higher then on Tomcat 1 server, Tomcat 2 is
also
- on a different LAN segment then Tomcat 1.
 
java.lang.ArrayIndexOutOfBoundsException: 8192
 at org.apache.jk.common.MsgAjp.appendByte(MsgAjp.java:105)
 at org.apache.jk.common.MsgAjp.appendByteChunk(MsgAjp.java:147)
 at org.apache.jk.common.MsgAjp.appendBytes(MsgAjp.java:132)
 at org.apache.jk.common.JkInputStream.appendHead(JkInputStream.java:302)
 at org.apache.jk.core.MsgContext.action(MsgContext.java:258)
 at org.apache.coyote.Response.action(Response.java:182)
 at org.apache.coyote.Response.sendHeaders(Response.java:374)
 at
org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:317)
 at org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:278)
 at org.apache.catalina.connector.Response.finishResponse(Response.java:483)
 at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
 at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
 at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.ja

Re: Max Memory Reading

2006-10-13 Thread Alan Flisch

It could actually be a 64 bit JVM (I didn't install it) although I
suspect not, but as I have no need to push the memory up any further
just now, I'll leave addressing that till later.

I'll maybe just make it 1600m or something for now as that should be
more than adequate.  The server isn't hammered but hosts quite a few
apps and that is why the demands on the perm gen space are higher than
is typical.

Regards,
Alan


On Fri, 2006-10-13 at 15:03 +0200, Leon Rosenberg wrote:

> Hmm,
> I'm not familiar with limitations on solaris. On linux 32bit VM can
> allocate 1.6-1.8 GB depending on vendor (1.6 for sun-jdk).
> 
> On the other side, if you are on 64bit OS (and you probably are, or
> how could you adress 16GB otherwise), why not using 64bit jdk?
> 
> regards
> Leon
> 
> On 10/13/06, Alan Flisch <[EMAIL PROTECTED]> wrote:
> >
> > I thought you were safe up to 4000m (in practice a little lower) for the
> > 32 bit VM.
> >
> > Regards,
> > Alan
> >
> > On Fri, 2006-10-13 at 13:04 +0200, Leon Rosenberg wrote:
> >
> > > just as note Xmx2000m works on 64bit vm only
> > > and you can use g instead of 1000m -> -Xmx2g
> > >
> > > regards
> > > Leon
> > >
> > > P.S. You should set your ms=mx, saves time :-)
> > >
> > > On 10/13/06, Alan Flisch <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Thanks.  Found a reference too:
> > > > http://java.sun.com/j2se/1.5.0/docs/guide/vm/gc-ergonomics.html
> > > >
> > > > Going to set the following...
> > > >
> > > > -server
> > > > -Xmx2000m
> > > > -XX:MaxPermSize=256m
> > > >
> > > >
> > > >
> > > > On Fri, 2006-10-13 at 12:38 +0200, Leon Rosenberg wrote:
> > > >
> > > > > def perm size is 64Mb
> > > > >
> > > > > On 10/13/06, Alan Flisch <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > Thanks, I suspected that, but couldn't find a reference in any JVM 
> > > > > > docs.
> > > > > > Do you have a reference I could look at so I could better understand
> > > > > > what is going on?
> > > > > >
> > > > > > In order for me to set an appropriate larger perm gen size, I 
> > > > > > suppose
> > > > > > I'd need to know what it currently is.  I seem to remember it is
> > > > > > independent of the max heap size.  Any thoughts on this?
> > > > > >
> > > > > > Regards,
> > > > > > Alan
> > > > > >
> > > > > >
> > > > > > On Fri, 2006-10-13 at 12:28 +0200, Leon Rosenberg wrote:
> > > > > >
> > > > > > > The default memory values depends on your machine (processor 
> > > > > > > speed and
> > > > > > > count, total amount of memory) and are guessed by the vm (if not
> > > > > > > explicitely specified) upon application start.
> > > > > > > Times of 64Mb max memory are long over now.
> > > > > > >
> > > > > > > regards
> > > > > > > Leon
> > > > > > >
> > > > > > > On 10/13/06, Alan Flisch <[EMAIL PROTECTED]> wrote:
> > > > > > > >
> > > > > > > > Hi,
> > > > > > > >
> > > > > > > > I was having some problems with perm gen space on one of our 
> > > > > > > > tomcat
> > > > > > > > instances and decided to increase the perm gen size and review 
> > > > > > > > the
> > > > > > > > JAVA_OPTS settings in general when I noticed something curious. 
> > > > > > > >  No
> > > > > > > > settings are currently made so its just running with default 
> > > > > > > > values, but
> > > > > > > > the manager status page shows the following...
> > > > > > > >
> > > > > > > > >Free memory: 158.53 MB Total memory: 373.75 MB Max memory: 
> > > > > > > > >913.37 MB
> > > > > > > >
> > > > > > > > That max memory figure in particular looks like a pretty strange
> > > > > > > > default!  I thought  the default was 64m.
> > > > > > > >
> > > > > > > > The installation details are as follows...
> > > > > > > > Apache Tomcat/5.5.16 1.5.0_06-b05 Sun Microsystems Inc. SunOS 
> > > > > > > > 5.9 sparc
> > > > > > > > The system has 16G of RAM.
> > > > > > > >
> > > > > > > > Has anybody any thoughts?
> > > > > > > >
> > > > > > > > Regards,
> > > > > > > > Alan
> > > > > > > >
> > > > > > > >
> > > > > > > > 
> > > > > > > > This e-mail and any accompanying documents contain confidential 
> > > > > > > > information intended for a specific individual which is private 
> > > > > > > > and protected by law.
> > > > > > > > If you are not the intended recipient, any disclosure, copying, 
> > > > > > > > distribution or other use of this information is strictly 
> > > > > > > > prohibited.
> > > > > > > > You are also requested to advise us immediately if you receive 
> > > > > > > > information which is not addressed to you.
> > > > > > > > beCogent is Authorised and Regulated by the Financial Services 
> > > > > > > > Authority.
> > > > > > > > *
> > > > > > > >
> > > > > > >
> > > > > > > --

Re: CPU level is not coming back to a normal level

2006-10-13 Thread Pascal Alberty

There is also the following one, but in wait mode:

"Java2D Disposer" daemon prio=1 tid=0x083a5858 nid=0x7443 in
Object.wait() [0x853ff000..0x853ff1c0]
at java.lang.Object.wait(Native Method)
- waiting on <0x92d654d0> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
- locked <0x92d654d0> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
at sun.java2d.Disposer.run(Disposer.java:107)
at java.lang.Thread.run(Thread.java:595)

Complete dump could be found here:
http://pascal.albertyorban.be/wp-content/dump.txt (i don't know if
attached files are allowed by this mailinglist).

Thanks for your help

On 10/13/06, Leon Rosenberg <[EMAIL PROTECTED]> wrote:

On 10/13/06, Pascal Alberty <[EMAIL PROTECTED]> wrote:
>
> I have set up GC information. While XHTML rendering, there is one Full
> GC which spent 0.2 sec. All other GC operations are taking less then
> 0.01 sec which seems "normal".
>
> When dumping the JVM through a kill -3, I can see threads working on
> sockets talking to apache.

and there are no other suspicious working threads?

Leon

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





--
Pascal Alberty
http://pascal.albertyorban.be

-
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: Problem with HttpSessionListener

2006-10-13 Thread José Roberto Motta Garcia
"No one was asking for cross-application scoping."

Hi chuck, do u know how to do that? It's what I'm trying to do, to get a
cross-app scope for customized management.

Tks

Jose Roberto


>   
>> the proper way to access your webapps info is  
>> getServletContext() to get the context first..once you have 
>> YOUR webapps context
>> use setAttribute() to set the property
>> use getAttribute to retrieve the value of the property
>> 
>
> More irrelevancy.  The OP is trying to update session attributes, not
> context attributes.
>
>  - 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 start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>   

-- 
Jose Roberto M. Garcia
Analista de Sistemas - Grupo Banco de Dados
Fone: (12) 3186-8405   Fax: (12) 3101-2835
--
http://www.cptec.inpe.br 
http://www.inpe.br 


-
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: Max Memory Reading

2006-10-13 Thread Leon Rosenberg

Christopher,

unfortunately google is not your friend in this case and the document
seems outdated :-)

http://java.sun.com/docs/hotspot/gc5.0/ergo5.html

n the J2SE platform version 5.0 a class of machine referred to as a
server-class machine has been defined as a machine with
 2 or more physical processors
 2 or more Gbytes of physical memory

On server-class machines by default the following are selected.
 Throughput garbage collector
 Heap sizes:

 initial heap size of 1/64 of physical memory up to 1Gbyte
 maximum heap size of ¼ of physical memory up to 1Gbyte
 Server runtime compiler

the 1GB limit fits Alan's MaxMemory of 913.37 MB

regards
Leon

On 10/13/06, Christopher Schultz <[EMAIL PROTECTED]> wrote:

Leon,

> The default memory values depends on your machine (processor speed and
> count, total amount of memory) and are guessed by the vm (if not
> explicitely specified) upon application start.
> Times of 64Mb max memory are long over now.

Really? Seems like 32-bit Sun JVM on Sparc has exactly 64MB max value by
default:

http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html#0.0.0.%20Total%20Heap%7Coutline

...or are we on a higher version of the GC by now?

Alan, what happens if you explicitly set your -Xms and -Xmx values? Does
the VM listen to you? Are you calling startup.sh or catalina.sh directly
when you start up Tomcat, or do you use any other kind of scripting
(like ant) or have you installed it as a service (/etc/init.d/tomcat or
whatever)? If some other process is starting Tomcat for you, then you
can't trust what your bash environment is telling you.

-chris

>
> regards
> Leon
>
> On 10/13/06, Alan Flisch <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> I was having some problems with perm gen space on one of our tomcat
>> instances and decided to increase the perm gen size and review the
>> JAVA_OPTS settings in general when I noticed something curious.  No
>> settings are currently made so its just running with default values, but
>> the manager status page shows the following...
>>
>> >Free memory: 158.53 MB Total memory: 373.75 MB Max memory: 913.37 MB
>>
>> That max memory figure in particular looks like a pretty strange
>> default!  I thought  the default was 64m.
>>
>> The installation details are as follows...
>> Apache Tomcat/5.5.16 1.5.0_06-b05 Sun Microsystems Inc. SunOS 5.9 sparc
>> The system has 16G of RAM.
>>
>> Has anybody any thoughts?
>>
>> Regards,
>> Alan
>>
>>
>> 

>>
>> This e-mail and any accompanying documents contain confidential
>> information intended for a specific individual which is private and
>> protected by law.
>> If you are not the intended recipient, any disclosure, copying,
>> distribution or other use of this information is strictly prohibited.
>> You are also requested to advise us immediately if you receive
>> information which is not addressed to you.
>> beCogent is Authorised and Regulated by the Financial Services Authority.
>> 
*
>>
>>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>






-
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: Max Memory Reading

2006-10-13 Thread Leon Rosenberg

Hmm,
I'm not familiar with limitations on solaris. On linux 32bit VM can
allocate 1.6-1.8 GB depending on vendor (1.6 for sun-jdk).

On the other side, if you are on 64bit OS (and you probably are, or
how could you adress 16GB otherwise), why not using 64bit jdk?

regards
Leon

On 10/13/06, Alan Flisch <[EMAIL PROTECTED]> wrote:


I thought you were safe up to 4000m (in practice a little lower) for the
32 bit VM.

Regards,
Alan

On Fri, 2006-10-13 at 13:04 +0200, Leon Rosenberg wrote:

> just as note Xmx2000m works on 64bit vm only
> and you can use g instead of 1000m -> -Xmx2g
>
> regards
> Leon
>
> P.S. You should set your ms=mx, saves time :-)
>
> On 10/13/06, Alan Flisch <[EMAIL PROTECTED]> wrote:
> >
> > Thanks.  Found a reference too:
> > http://java.sun.com/j2se/1.5.0/docs/guide/vm/gc-ergonomics.html
> >
> > Going to set the following...
> >
> > -server
> > -Xmx2000m
> > -XX:MaxPermSize=256m
> >
> >
> >
> > On Fri, 2006-10-13 at 12:38 +0200, Leon Rosenberg wrote:
> >
> > > def perm size is 64Mb
> > >
> > > On 10/13/06, Alan Flisch <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Thanks, I suspected that, but couldn't find a reference in any JVM docs.
> > > > Do you have a reference I could look at so I could better understand
> > > > what is going on?
> > > >
> > > > In order for me to set an appropriate larger perm gen size, I suppose
> > > > I'd need to know what it currently is.  I seem to remember it is
> > > > independent of the max heap size.  Any thoughts on this?
> > > >
> > > > Regards,
> > > > Alan
> > > >
> > > >
> > > > On Fri, 2006-10-13 at 12:28 +0200, Leon Rosenberg wrote:
> > > >
> > > > > The default memory values depends on your machine (processor speed and
> > > > > count, total amount of memory) and are guessed by the vm (if not
> > > > > explicitely specified) upon application start.
> > > > > Times of 64Mb max memory are long over now.
> > > > >
> > > > > regards
> > > > > Leon
> > > > >
> > > > > On 10/13/06, Alan Flisch <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > Hi,
> > > > > >
> > > > > > I was having some problems with perm gen space on one of our tomcat
> > > > > > instances and decided to increase the perm gen size and review the
> > > > > > JAVA_OPTS settings in general when I noticed something curious.  No
> > > > > > settings are currently made so its just running with default 
values, but
> > > > > > the manager status page shows the following...
> > > > > >
> > > > > > >Free memory: 158.53 MB Total memory: 373.75 MB Max memory: 913.37 
MB
> > > > > >
> > > > > > That max memory figure in particular looks like a pretty strange
> > > > > > default!  I thought  the default was 64m.
> > > > > >
> > > > > > The installation details are as follows...
> > > > > > Apache Tomcat/5.5.16 1.5.0_06-b05 Sun Microsystems Inc. SunOS 5.9 
sparc
> > > > > > The system has 16G of RAM.
> > > > > >
> > > > > > Has anybody any thoughts?
> > > > > >
> > > > > > Regards,
> > > > > > Alan
> > > > > >
> > > > > >
> > > > > > 

> > > > > > This e-mail and any accompanying documents contain confidential 
information intended for a specific individual which is private and protected by law.
> > > > > > If you are not the intended recipient, any disclosure, copying, 
distribution or other use of this information is strictly prohibited.
> > > > > > You are also requested to advise us immediately if you receive 
information which is not addressed to you.
> > > > > > beCogent is Authorised and Regulated by the Financial Services 
Authority.
> > > > > > 
*
> > > > > >
> > > > >
> > > > > -
> > > > > To start a new topic, e-mail: users@tomcat.apache.org
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > > >
> > > >
> > > > 

> > > > This e-mail and any accompanying documents contain confidential 
information intended for a specific individual which is private and protected by law.
> > > > If you are not the intended recipient, any disclosure, copying, 
distribution or other use of this information is strictly prohibited.
> > > > You are also requested to advise us immediately if you receive 
information which is not addressed to you.
> > > > beCogent is Authorised and Regulated by the Financial Services 
Authority.
> > > > 
*
> > > >
> > >
> > > --

Re: Max Memory Reading

2006-10-13 Thread Christopher Schultz
Leon,

> The default memory values depends on your machine (processor speed and
> count, total amount of memory) and are guessed by the vm (if not
> explicitely specified) upon application start.
> Times of 64Mb max memory are long over now.

Really? Seems like 32-bit Sun JVM on Sparc has exactly 64MB max value by
default:

http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html#0.0.0.%20Total%20Heap%7Coutline

...or are we on a higher version of the GC by now?

Alan, what happens if you explicitly set your -Xms and -Xmx values? Does
the VM listen to you? Are you calling startup.sh or catalina.sh directly
when you start up Tomcat, or do you use any other kind of scripting
(like ant) or have you installed it as a service (/etc/init.d/tomcat or
whatever)? If some other process is starting Tomcat for you, then you
can't trust what your bash environment is telling you.

-chris

> 
> regards
> Leon
> 
> On 10/13/06, Alan Flisch <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> I was having some problems with perm gen space on one of our tomcat
>> instances and decided to increase the perm gen size and review the
>> JAVA_OPTS settings in general when I noticed something curious.  No
>> settings are currently made so its just running with default values, but
>> the manager status page shows the following...
>>
>> >Free memory: 158.53 MB Total memory: 373.75 MB Max memory: 913.37 MB
>>
>> That max memory figure in particular looks like a pretty strange
>> default!  I thought  the default was 64m.
>>
>> The installation details are as follows...
>> Apache Tomcat/5.5.16 1.5.0_06-b05 Sun Microsystems Inc. SunOS 5.9 sparc
>> The system has 16G of RAM.
>>
>> Has anybody any thoughts?
>>
>> Regards,
>> Alan
>>
>>
>> 
>>
>> This e-mail and any accompanying documents contain confidential
>> information intended for a specific individual which is private and
>> protected by law.
>> If you are not the intended recipient, any disclosure, copying,
>> distribution or other use of this information is strictly prohibited.
>> You are also requested to advise us immediately if you receive
>> information which is not addressed to you.
>> beCogent is Authorised and Regulated by the Financial Services Authority.
>> *
>>
>>
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



signature.asc
Description: OpenPGP digital signature


Re: Tomcat Embedded and Server.xml

2006-10-13 Thread Miguel Correia Ricardo

Thanks.

On 10/13/06, Andre Prasetya <[EMAIL PROTECTED]> wrote:

Yes I use server.xml to configure the comcat embedded, and only for
connector ports, I attach the server.xml, hopefully its usefull for you.



On 10/13/06, Miguel Correia Ricardo <[EMAIL PROTECTED]> wrote:
>
> But, do you use server.xml to configure tomcat embedded? For example,
> for the connector ports? If so, how may I ask?
>
> Best regards,
> Miguel
>
> On 10/12/06, Andre Prasetya < [EMAIL PROTECTED]> wrote:
> > Hi Miguel, I m using tomcat embedded but i still use server.xml too
> >
> > -Andre-
> >
> >
> > On 10/10/06, Miguel Correia Ricardo < [EMAIL PROTECTED]> wrote:
> > >
> > > Hello,
> > >
> > > I'm having a doubt that is bugging me. And I need to solve it also.
> > > Everywhere I look, it says that by using Tomcat Embedded I don't need
> > > the server.xml configuration file. Ok, I can understand why... But,
> > > what about the Connector ports, how do I know at advance wich one are
> > > busy or not... I want to be able to use Tomcat Embedded and still use
> > > the server.xml configuration file, for the most various reasons, one
> > > of them is to define the Connector ports.
> > >
> > > Is there any class in the tomcat *.jars that will help me achieve it
> > > easily? Or I have to follow the same thing that Catalina is doing,
> > > that is, creating a Digest object, set the Sax rules, and so on...
> > >
> > > Hope you can help. And thanks in advance.
> > >
> > > My best regards,
> > > Miguel Correia Ricardo
> > >
> > >
-
> > > To start a new topic, e-mail: users@tomcat.apache.org
> > > To unsubscribe, e-mail:
[EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > -Andre-
> >
> > PCs are like air conditioner, if you open Windows, they don't work
> >
> >
>
>
-
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail:
[EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



--
-Andre-

PCs are like air conditioner, if you open Windows, they don't work
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
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: Tomcat Embedded and Server.xml

2006-10-13 Thread Mark Miller

I am using embedded tomcat and I do not use server.xml. Unfortunately, I am
away from home until Sunday. I will give you more info then.

- Mark

On 10/13/06, Miguel Correia Ricardo <[EMAIL PROTECTED]> wrote:


But, do you use server.xml to configure tomcat embedded? For example,
for the connector ports? If so, how may I ask?

Best regards,
Miguel

On 10/12/06, Andre Prasetya <[EMAIL PROTECTED]> wrote:
> Hi Miguel, I m using tomcat embedded but i still use server.xml too
>
> -Andre-
>
>
> On 10/10/06, Miguel Correia Ricardo <[EMAIL PROTECTED]> wrote:
> >
> > Hello,
> >
> > I'm having a doubt that is bugging me. And I need to solve it also.
> > Everywhere I look, it says that by using Tomcat Embedded I don't need
> > the server.xml configuration file. Ok, I can understand why... But,
> > what about the Connector ports, how do I know at advance wich one are
> > busy or not... I want to be able to use Tomcat Embedded and still use
> > the server.xml configuration file, for the most various reasons, one
> > of them is to define the Connector ports.
> >
> > Is there any class in the tomcat *.jars that will help me achieve it
> > easily? Or I have to follow the same thing that Catalina is doing,
> > that is, creating a Digest object, set the Sax rules, and so on...
> >
> > Hope you can help. And thanks in advance.
> >
> > My best regards,
> > Miguel Correia Ricardo
> >
> > -
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> -Andre-
>
> PCs are like air conditioner, if you open Windows, they don't work
>
>

-
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: Max Memory Reading

2006-10-13 Thread Andrew Miehs

Nope - the 32Bit JVM can only deal with about 1.5GB Ram

Andrew

On 13/10/2006, at 2:51 PM, Alan Flisch wrote:



I thought you were safe up to 4000m (in practice a little lower)  
for the

32 bit VM.

Regards,
Alan



-
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: Max Memory Reading

2006-10-13 Thread Alan Flisch

I thought you were safe up to 4000m (in practice a little lower) for the
32 bit VM.

Regards,
Alan

On Fri, 2006-10-13 at 13:04 +0200, Leon Rosenberg wrote:

> just as note Xmx2000m works on 64bit vm only
> and you can use g instead of 1000m -> -Xmx2g
> 
> regards
> Leon
> 
> P.S. You should set your ms=mx, saves time :-)
> 
> On 10/13/06, Alan Flisch <[EMAIL PROTECTED]> wrote:
> >
> > Thanks.  Found a reference too:
> > http://java.sun.com/j2se/1.5.0/docs/guide/vm/gc-ergonomics.html
> >
> > Going to set the following...
> >
> > -server
> > -Xmx2000m
> > -XX:MaxPermSize=256m
> >
> >
> >
> > On Fri, 2006-10-13 at 12:38 +0200, Leon Rosenberg wrote:
> >
> > > def perm size is 64Mb
> > >
> > > On 10/13/06, Alan Flisch <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Thanks, I suspected that, but couldn't find a reference in any JVM docs.
> > > > Do you have a reference I could look at so I could better understand
> > > > what is going on?
> > > >
> > > > In order for me to set an appropriate larger perm gen size, I suppose
> > > > I'd need to know what it currently is.  I seem to remember it is
> > > > independent of the max heap size.  Any thoughts on this?
> > > >
> > > > Regards,
> > > > Alan
> > > >
> > > >
> > > > On Fri, 2006-10-13 at 12:28 +0200, Leon Rosenberg wrote:
> > > >
> > > > > The default memory values depends on your machine (processor speed and
> > > > > count, total amount of memory) and are guessed by the vm (if not
> > > > > explicitely specified) upon application start.
> > > > > Times of 64Mb max memory are long over now.
> > > > >
> > > > > regards
> > > > > Leon
> > > > >
> > > > > On 10/13/06, Alan Flisch <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > Hi,
> > > > > >
> > > > > > I was having some problems with perm gen space on one of our tomcat
> > > > > > instances and decided to increase the perm gen size and review the
> > > > > > JAVA_OPTS settings in general when I noticed something curious.  No
> > > > > > settings are currently made so its just running with default 
> > > > > > values, but
> > > > > > the manager status page shows the following...
> > > > > >
> > > > > > >Free memory: 158.53 MB Total memory: 373.75 MB Max memory: 913.37 
> > > > > > >MB
> > > > > >
> > > > > > That max memory figure in particular looks like a pretty strange
> > > > > > default!  I thought  the default was 64m.
> > > > > >
> > > > > > The installation details are as follows...
> > > > > > Apache Tomcat/5.5.16 1.5.0_06-b05 Sun Microsystems Inc. SunOS 5.9 
> > > > > > sparc
> > > > > > The system has 16G of RAM.
> > > > > >
> > > > > > Has anybody any thoughts?
> > > > > >
> > > > > > Regards,
> > > > > > Alan
> > > > > >
> > > > > >
> > > > > > 
> > > > > > This e-mail and any accompanying documents contain confidential 
> > > > > > information intended for a specific individual which is private and 
> > > > > > protected by law.
> > > > > > If you are not the intended recipient, any disclosure, copying, 
> > > > > > distribution or other use of this information is strictly 
> > > > > > prohibited.
> > > > > > You are also requested to advise us immediately if you receive 
> > > > > > information which is not addressed to you.
> > > > > > beCogent is Authorised and Regulated by the Financial Services 
> > > > > > Authority.
> > > > > > *
> > > > > >
> > > > >
> > > > > -
> > > > > To start a new topic, e-mail: users@tomcat.apache.org
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > > >
> > > >
> > > > 
> > > > This e-mail and any accompanying documents contain confidential 
> > > > information intended for a specific individual which is private and 
> > > > protected by law.
> > > > If you are not the intended recipient, any disclosure, copying, 
> > > > distribution or other use of this information is strictly prohibited.
> > > > You are also requested to advise us immediately if you receive 
> > > > information which is not addressed to you.
> > > > beCogent is Authorised and Regulated by the Financial Services 
> > > > Authority.
> > > > *
> > > >
> > >
> > > -
> > > To start a new topic, e-mail: users@tomcat.apache.org
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands,

Re: CPU level is not coming back to a normal level

2006-10-13 Thread Leon Rosenberg

On 10/13/06, Pascal Alberty <[EMAIL PROTECTED]> wrote:


I have set up GC information. While XHTML rendering, there is one Full
GC which spent 0.2 sec. All other GC operations are taking less then
0.01 sec which seems "normal".

When dumping the JVM through a kill -3, I can see threads working on
sockets talking to apache.


and there are no other suspicious working threads?

Leon

-
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: CPU level is not coming back to a normal level

2006-10-13 Thread David Smith
I think you are going to have to get a profiler going to diagnose this.  
See where the JVM is spending it's time when the CPU goes high like 
this.  Also try using the logs to see if it's coincident on specific 
requests or other events in tomcat.


--David

Pascal Alberty wrote:


Any other idea ?

Thanks

On 10/13/06, Pascal Alberty <[EMAIL PROTECTED]> wrote:


On 10/12/06, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Pascal Alberty
> > Subject: CPU level is not coming back to a normal level
> >
> > When I'm testing the new servlet on my dev box, all is ok. When i'm
> > running the same servlet on the prod box, Tomcat is reaching 
almost 2

> > x 100% CPUs for about 4 to 7 seconds.
>
> Does this period coincide with garbage collection?  (Although 4 - 7
> seconds is rather long for a GC.)  Have you tried using a profiler to
> see where the threads are spending their time?

First, thanks for your quick answer.

I have set up GC information. While XHTML rendering, there is one Full
GC which spent 0.2 sec. All other GC operations are taking less then
0.01 sec which seems "normal".

When dumping the JVM through a kill -3, I can see threads working on
sockets talking to apache.

> > how can I ask Tomcat to kill these non working threads ?
>
> What do you have maxSpareThreads for each of your connectors set to?
> Look here for the HTTP connector doc:
> http://tomcat.apache.org/tomcat-5.5-doc/config/http.html

I'm not using this one

> or here for AJP:
> http://tomcat.apache.org/tomcat-5.5-doc/config/ajp.html

maxProcessors is 256 (same as Apache maxclients)
maxSpareThreads is not set because it's a tomcat-5.5 parameter and i'm
using tomcat 5.0

Thanks again

--
Pascal Alberty
http://pascal.albertyorban.be







-
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: CPU level is not coming back to a normal level

2006-10-13 Thread Pascal Alberty

Any other idea ?

Thanks

On 10/13/06, Pascal Alberty <[EMAIL PROTECTED]> wrote:

On 10/12/06, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Pascal Alberty
> > Subject: CPU level is not coming back to a normal level
> >
> > When I'm testing the new servlet on my dev box, all is ok. When i'm
> > running the same servlet on the prod box, Tomcat is reaching almost 2
> > x 100% CPUs for about 4 to 7 seconds.
>
> Does this period coincide with garbage collection?  (Although 4 - 7
> seconds is rather long for a GC.)  Have you tried using a profiler to
> see where the threads are spending their time?

First, thanks for your quick answer.

I have set up GC information. While XHTML rendering, there is one Full
GC which spent 0.2 sec. All other GC operations are taking less then
0.01 sec which seems "normal".

When dumping the JVM through a kill -3, I can see threads working on
sockets talking to apache.

> > how can I ask Tomcat to kill these non working threads ?
>
> What do you have maxSpareThreads for each of your connectors set to?
> Look here for the HTTP connector doc:
> http://tomcat.apache.org/tomcat-5.5-doc/config/http.html

I'm not using this one

> or here for AJP:
> http://tomcat.apache.org/tomcat-5.5-doc/config/ajp.html

maxProcessors is 256 (same as Apache maxclients)
maxSpareThreads is not set because it's a tomcat-5.5 parameter and i'm
using tomcat 5.0

Thanks again

--
Pascal Alberty
http://pascal.albertyorban.be




--
Pascal Alberty
http://pascal.albertyorban.be

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



Tomcat 3.3.1a Hangs

2006-10-13 Thread Himanshu Thube

Hello All,

We have a problem in our production system. Following is our environment.

Tomcat 3.3.1a
AIX 5.3
IBM JDK 1.3.1
Apache/1.3.28


The only change that we did was changed from AIX 5.1 ML 4 to AIX 5.3 ML5

Tomcat hangs sometimes 5 times a day or sometimes it works fine for a day or
two. We have tried to keep most of the parameters same. Tried to put all
logs on debug, but no errors anywhere. While starting Tomcat we also
redirected the errors and standard output to a log but no errors there as
well. We tried to check for any user behaviour or specific request that
might be causing this but nothing was found.

Only exceptions that we get are :

IOException in R

java.io.IOException: There is no process to read data written to a pipe.
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(SocketOutputStream.java(Compiled
Code))
at org.apache.tomcat.modules.server.HttpResponse.doWrite(
Http10Interceptor.java(Compiled Code))
at org.apache.tomcat.modules.server.HttpResponse.doWrite(
Http10Interceptor.java(Compiled Code))
at org.apache.tomcat.core.OutputBuffer.realWriteBytes(OutputBuffer.java(Compiled
Code))
at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java(Compiled
Code))
at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java(Compiled
Code))
at org.apache.tomcat.util.buf.IntermediateOutputStream.write(
C2BConverter.java(Compiled Code))
at java.io.OutputStreamWriter.write(OutputStreamWriter.java(Compiled Code))
at org.apache.tomcat.util.buf.CharChunk.append(CharChunk.java(Compiled
Code))
at org.apache.tomcat.util.buf.CharChunk.append(CharChunk.java(Compiled
Code))
at org.apache.tomcat.util.buf.CharChunk.append(CharChunk.java(Compiled
Code))
at org.apache.tomcat.util.buf.CharChunk.append(CharChunk.java(Compiled
Code))
at org.apache.tomcat.util.buf.CharChunk.append(CharChunk.java(Compiled
Code))
at org.apache.tomcat.core.OutputBuffer.write(OutputBuffer.java:274)
at org.apache.tomcat.modules.generators.ExceptionHandler.doService(
ErrorHandler.java:658)
at org.apache.tomcat.core.Handler.service(Handler.java(Compiled Code))
at org.apache.tomcat.core.Handler.service(Handler.java(Compiled Code))
at org.apache.tomcat.modules.generators.ErrorHandler.handleErrorImpl(
ErrorHandler.java:414)
at org.apache.tomcat.modules.generators.ErrorHandler.handleError(
ErrorHandler.java:184)
at 
org.apache.tomcat.core.ContextManager.handleError(ContextManager.java(Compiled
Code))
at org.apache.tomcat.core.ContextManager.service(ContextManager.java(Compiled
Code))
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(
Http10Interceptor.java:176)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java(Compiled
Code))
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:516)
at java.lang.Thread.run(Thread.java:512)



However this exception does not cause Tomcat to hang because the time when
exception is thrown and Tomcat hangs has never matched even with a
difference of hour.

Can someone please help ? Changing anything in the environment would be very
very difficult. Can someone atleast tell how we can atleast get what is the
error that is ausing this in Tomcat ?

--
Himanshu


Re: Max Memory Reading

2006-10-13 Thread Leon Rosenberg

just as note Xmx2000m works on 64bit vm only
and you can use g instead of 1000m -> -Xmx2g

regards
Leon

P.S. You should set your ms=mx, saves time :-)

On 10/13/06, Alan Flisch <[EMAIL PROTECTED]> wrote:


Thanks.  Found a reference too:
http://java.sun.com/j2se/1.5.0/docs/guide/vm/gc-ergonomics.html

Going to set the following...

-server
-Xmx2000m
-XX:MaxPermSize=256m



On Fri, 2006-10-13 at 12:38 +0200, Leon Rosenberg wrote:

> def perm size is 64Mb
>
> On 10/13/06, Alan Flisch <[EMAIL PROTECTED]> wrote:
> >
> > Thanks, I suspected that, but couldn't find a reference in any JVM docs.
> > Do you have a reference I could look at so I could better understand
> > what is going on?
> >
> > In order for me to set an appropriate larger perm gen size, I suppose
> > I'd need to know what it currently is.  I seem to remember it is
> > independent of the max heap size.  Any thoughts on this?
> >
> > Regards,
> > Alan
> >
> >
> > On Fri, 2006-10-13 at 12:28 +0200, Leon Rosenberg wrote:
> >
> > > The default memory values depends on your machine (processor speed and
> > > count, total amount of memory) and are guessed by the vm (if not
> > > explicitely specified) upon application start.
> > > Times of 64Mb max memory are long over now.
> > >
> > > regards
> > > Leon
> > >
> > > On 10/13/06, Alan Flisch <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Hi,
> > > >
> > > > I was having some problems with perm gen space on one of our tomcat
> > > > instances and decided to increase the perm gen size and review the
> > > > JAVA_OPTS settings in general when I noticed something curious.  No
> > > > settings are currently made so its just running with default values, but
> > > > the manager status page shows the following...
> > > >
> > > > >Free memory: 158.53 MB Total memory: 373.75 MB Max memory: 913.37 MB
> > > >
> > > > That max memory figure in particular looks like a pretty strange
> > > > default!  I thought  the default was 64m.
> > > >
> > > > The installation details are as follows...
> > > > Apache Tomcat/5.5.16 1.5.0_06-b05 Sun Microsystems Inc. SunOS 5.9 sparc
> > > > The system has 16G of RAM.
> > > >
> > > > Has anybody any thoughts?
> > > >
> > > > Regards,
> > > > Alan
> > > >
> > > >
> > > > 

> > > > This e-mail and any accompanying documents contain confidential 
information intended for a specific individual which is private and protected by law.
> > > > If you are not the intended recipient, any disclosure, copying, 
distribution or other use of this information is strictly prohibited.
> > > > You are also requested to advise us immediately if you receive 
information which is not addressed to you.
> > > > beCogent is Authorised and Regulated by the Financial Services 
Authority.
> > > > 
*
> > > >
> > >
> > > -
> > > To start a new topic, e-mail: users@tomcat.apache.org
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> > 

> > This e-mail and any accompanying documents contain confidential information 
intended for a specific individual which is private and protected by law.
> > If you are not the intended recipient, any disclosure, copying, 
distribution or other use of this information is strictly prohibited.
> > You are also requested to advise us immediately if you receive information 
which is not addressed to you.
> > beCogent is Authorised and Regulated by the Financial Services Authority.
> > 
*
> >
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

Alan Flisch
Senior Developer
beCogent Ltd.
www.beCogent.com

T: +44 (0)1236 628 113
F: +44 (0)1236 628 101
E: [EMAIL PROTECTED]



This e-mail and any accompanying documents contain confidential information 
intended for a specific individual which is private and protected by law.
If you are not the intended recipient, any disclosure, copying, distribution or 
other use of this information is strictly prohibited.
You are also requested to advise us immediately if you receive information 
which is not addresse

Re: Max Memory Reading

2006-10-13 Thread Alan Flisch

Thanks.  Found a reference too:
http://java.sun.com/j2se/1.5.0/docs/guide/vm/gc-ergonomics.html

Going to set the following...

-server
-Xmx2000m
-XX:MaxPermSize=256m



On Fri, 2006-10-13 at 12:38 +0200, Leon Rosenberg wrote:

> def perm size is 64Mb
> 
> On 10/13/06, Alan Flisch <[EMAIL PROTECTED]> wrote:
> >
> > Thanks, I suspected that, but couldn't find a reference in any JVM docs.
> > Do you have a reference I could look at so I could better understand
> > what is going on?
> >
> > In order for me to set an appropriate larger perm gen size, I suppose
> > I'd need to know what it currently is.  I seem to remember it is
> > independent of the max heap size.  Any thoughts on this?
> >
> > Regards,
> > Alan
> >
> >
> > On Fri, 2006-10-13 at 12:28 +0200, Leon Rosenberg wrote:
> >
> > > The default memory values depends on your machine (processor speed and
> > > count, total amount of memory) and are guessed by the vm (if not
> > > explicitely specified) upon application start.
> > > Times of 64Mb max memory are long over now.
> > >
> > > regards
> > > Leon
> > >
> > > On 10/13/06, Alan Flisch <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Hi,
> > > >
> > > > I was having some problems with perm gen space on one of our tomcat
> > > > instances and decided to increase the perm gen size and review the
> > > > JAVA_OPTS settings in general when I noticed something curious.  No
> > > > settings are currently made so its just running with default values, but
> > > > the manager status page shows the following...
> > > >
> > > > >Free memory: 158.53 MB Total memory: 373.75 MB Max memory: 913.37 MB
> > > >
> > > > That max memory figure in particular looks like a pretty strange
> > > > default!  I thought  the default was 64m.
> > > >
> > > > The installation details are as follows...
> > > > Apache Tomcat/5.5.16 1.5.0_06-b05 Sun Microsystems Inc. SunOS 5.9 sparc
> > > > The system has 16G of RAM.
> > > >
> > > > Has anybody any thoughts?
> > > >
> > > > Regards,
> > > > Alan
> > > >
> > > >
> > > > 
> > > > This e-mail and any accompanying documents contain confidential 
> > > > information intended for a specific individual which is private and 
> > > > protected by law.
> > > > If you are not the intended recipient, any disclosure, copying, 
> > > > distribution or other use of this information is strictly prohibited.
> > > > You are also requested to advise us immediately if you receive 
> > > > information which is not addressed to you.
> > > > beCogent is Authorised and Regulated by the Financial Services 
> > > > Authority.
> > > > *
> > > >
> > >
> > > -
> > > To start a new topic, e-mail: users@tomcat.apache.org
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> > 
> > This e-mail and any accompanying documents contain confidential information 
> > intended for a specific individual which is private and protected by law.
> > If you are not the intended recipient, any disclosure, copying, 
> > distribution or other use of this information is strictly prohibited.
> > You are also requested to advise us immediately if you receive information 
> > which is not addressed to you.
> > beCogent is Authorised and Regulated by the Financial Services Authority.
> > *
> >
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

Alan Flisch
Senior Developer
beCogent Ltd.
www.beCogent.com

T: +44 (0)1236 628 113
F: +44 (0)1236 628 101
E: [EMAIL PROTECTED] 



This e-mail and any accompanying documents contain confidential information 
intended for a specific individual which is private and protected by law.
If you are not the intended recipient, any disclosure, copying, distribution or 
other use of this information is strictly prohibited.
You are also requested to advise us immediately if you receive information 
which is not addressed to you.
beCogent is Authorised and Regulated by the Financial Services Authority.
**

Re: Tomcat Embedded and Server.xml

2006-10-13 Thread Andre Prasetya
Yes I use server.xml to configure the comcat embedded, and only for connector ports, I attach the server.xml, hopefully its usefull for you.On 10/13/06, 
Miguel Correia Ricardo <[EMAIL PROTECTED]> wrote:
But, do you use server.xml to configure tomcat embedded? For example,for the connector ports? If so, how may I ask?Best regards,MiguelOn 10/12/06, Andre Prasetya <
[EMAIL PROTECTED]> wrote:> Hi Miguel, I m using tomcat embedded but i still use server.xml too>> -Andre->>> On 10/10/06, Miguel Correia Ricardo <
[EMAIL PROTECTED]> wrote:> >> > Hello,> >> > I'm having a doubt that is bugging me. And I need to solve it also.> > Everywhere I look, it says that by using Tomcat Embedded I don't need
> > the server.xml configuration file. Ok, I can understand why... But,> > what about the Connector ports, how do I know at advance wich one are> > busy or not... I want to be able to use Tomcat Embedded and still use
> > the server.xml configuration file, for the most various reasons, one> > of them is to define the Connector ports.> >> > Is there any class in the tomcat *.jars that will help me achieve it
> > easily? Or I have to follow the same thing that Catalina is doing,> > that is, creating a Digest object, set the Sax rules, and so on...> >> > Hope you can help. And thanks in advance.
> >> > My best regards,> > Miguel Correia Ricardo> >> > -> > To start a new topic, e-mail: 
users@tomcat.apache.org> > To unsubscribe, e-mail: [EMAIL PROTECTED]> > For additional commands, e-mail: 
[EMAIL PROTECTED]> >>  --> -Andre->> PCs are like air conditioner, if you open Windows, they don't work>>-
To start a new topic, e-mail: users@tomcat.apache.orgTo unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]-- -Andre-PCs are like air conditioner, if you open Windows, they don't work

  




  
factory
org.apache.catalina.users.MemoryUserDatabaseFactory
  
  
pathname
conf/tomcat-users.xml
  

  

  






  

  

  
  

  

  

  


-
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: Max Memory Reading

2006-10-13 Thread Leon Rosenberg

def perm size is 64Mb

On 10/13/06, Alan Flisch <[EMAIL PROTECTED]> wrote:


Thanks, I suspected that, but couldn't find a reference in any JVM docs.
Do you have a reference I could look at so I could better understand
what is going on?

In order for me to set an appropriate larger perm gen size, I suppose
I'd need to know what it currently is.  I seem to remember it is
independent of the max heap size.  Any thoughts on this?

Regards,
Alan


On Fri, 2006-10-13 at 12:28 +0200, Leon Rosenberg wrote:

> The default memory values depends on your machine (processor speed and
> count, total amount of memory) and are guessed by the vm (if not
> explicitely specified) upon application start.
> Times of 64Mb max memory are long over now.
>
> regards
> Leon
>
> On 10/13/06, Alan Flisch <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > I was having some problems with perm gen space on one of our tomcat
> > instances and decided to increase the perm gen size and review the
> > JAVA_OPTS settings in general when I noticed something curious.  No
> > settings are currently made so its just running with default values, but
> > the manager status page shows the following...
> >
> > >Free memory: 158.53 MB Total memory: 373.75 MB Max memory: 913.37 MB
> >
> > That max memory figure in particular looks like a pretty strange
> > default!  I thought  the default was 64m.
> >
> > The installation details are as follows...
> > Apache Tomcat/5.5.16 1.5.0_06-b05 Sun Microsystems Inc. SunOS 5.9 sparc
> > The system has 16G of RAM.
> >
> > Has anybody any thoughts?
> >
> > Regards,
> > Alan
> >
> >
> > 

> > This e-mail and any accompanying documents contain confidential information 
intended for a specific individual which is private and protected by law.
> > If you are not the intended recipient, any disclosure, copying, 
distribution or other use of this information is strictly prohibited.
> > You are also requested to advise us immediately if you receive information 
which is not addressed to you.
> > beCogent is Authorised and Regulated by the Financial Services Authority.
> > 
*
> >
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]





This e-mail and any accompanying documents contain confidential information 
intended for a specific individual which is private and protected by law.
If you are not the intended recipient, any disclosure, copying, distribution or 
other use of this information is strictly prohibited.
You are also requested to advise us immediately if you receive information 
which is not addressed to you.
beCogent is Authorised and Regulated by the Financial Services Authority.
*



-
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: Max Memory Reading

2006-10-13 Thread Alan Flisch

Thanks, I suspected that, but couldn't find a reference in any JVM docs.
Do you have a reference I could look at so I could better understand
what is going on?

In order for me to set an appropriate larger perm gen size, I suppose
I'd need to know what it currently is.  I seem to remember it is
independent of the max heap size.  Any thoughts on this?

Regards,
Alan


On Fri, 2006-10-13 at 12:28 +0200, Leon Rosenberg wrote:

> The default memory values depends on your machine (processor speed and
> count, total amount of memory) and are guessed by the vm (if not
> explicitely specified) upon application start.
> Times of 64Mb max memory are long over now.
> 
> regards
> Leon
> 
> On 10/13/06, Alan Flisch <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > I was having some problems with perm gen space on one of our tomcat
> > instances and decided to increase the perm gen size and review the
> > JAVA_OPTS settings in general when I noticed something curious.  No
> > settings are currently made so its just running with default values, but
> > the manager status page shows the following...
> >
> > >Free memory: 158.53 MB Total memory: 373.75 MB Max memory: 913.37 MB
> >
> > That max memory figure in particular looks like a pretty strange
> > default!  I thought  the default was 64m.
> >
> > The installation details are as follows...
> > Apache Tomcat/5.5.16 1.5.0_06-b05 Sun Microsystems Inc. SunOS 5.9 sparc
> > The system has 16G of RAM.
> >
> > Has anybody any thoughts?
> >
> > Regards,
> > Alan
> >
> >
> > 
> > This e-mail and any accompanying documents contain confidential information 
> > intended for a specific individual which is private and protected by law.
> > If you are not the intended recipient, any disclosure, copying, 
> > distribution or other use of this information is strictly prohibited.
> > You are also requested to advise us immediately if you receive information 
> > which is not addressed to you.
> > beCogent is Authorised and Regulated by the Financial Services Authority.
> > *
> >
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]





This e-mail and any accompanying documents contain confidential information 
intended for a specific individual which is private and protected by law.
If you are not the intended recipient, any disclosure, copying, distribution or 
other use of this information is strictly prohibited.
You are also requested to advise us immediately if you receive information 
which is not addressed to you.
beCogent is Authorised and Regulated by the Financial Services Authority.
*

Re: Max Memory Reading

2006-10-13 Thread Leon Rosenberg

The default memory values depends on your machine (processor speed and
count, total amount of memory) and are guessed by the vm (if not
explicitely specified) upon application start.
Times of 64Mb max memory are long over now.

regards
Leon

On 10/13/06, Alan Flisch <[EMAIL PROTECTED]> wrote:


Hi,

I was having some problems with perm gen space on one of our tomcat
instances and decided to increase the perm gen size and review the
JAVA_OPTS settings in general when I noticed something curious.  No
settings are currently made so its just running with default values, but
the manager status page shows the following...

>Free memory: 158.53 MB Total memory: 373.75 MB Max memory: 913.37 MB

That max memory figure in particular looks like a pretty strange
default!  I thought  the default was 64m.

The installation details are as follows...
Apache Tomcat/5.5.16 1.5.0_06-b05 Sun Microsystems Inc. SunOS 5.9 sparc
The system has 16G of RAM.

Has anybody any thoughts?

Regards,
Alan



This e-mail and any accompanying documents contain confidential information 
intended for a specific individual which is private and protected by law.
If you are not the intended recipient, any disclosure, copying, distribution or 
other use of this information is strictly prohibited.
You are also requested to advise us immediately if you receive information 
which is not addressed to you.
beCogent is Authorised and Regulated by the Financial Services Authority.
*



-
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: Tomcat Embedded and Server.xml

2006-10-13 Thread Miguel Correia Ricardo

But, do you use server.xml to configure tomcat embedded? For example,
for the connector ports? If so, how may I ask?

Best regards,
Miguel

On 10/12/06, Andre Prasetya <[EMAIL PROTECTED]> wrote:

Hi Miguel, I m using tomcat embedded but i still use server.xml too

-Andre-


On 10/10/06, Miguel Correia Ricardo <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I'm having a doubt that is bugging me. And I need to solve it also.
> Everywhere I look, it says that by using Tomcat Embedded I don't need
> the server.xml configuration file. Ok, I can understand why... But,
> what about the Connector ports, how do I know at advance wich one are
> busy or not... I want to be able to use Tomcat Embedded and still use
> the server.xml configuration file, for the most various reasons, one
> of them is to define the Connector ports.
>
> Is there any class in the tomcat *.jars that will help me achieve it
> easily? Or I have to follow the same thing that Catalina is doing,
> that is, creating a Digest object, set the Sax rules, and so on...
>
> Hope you can help. And thanks in advance.
>
> My best regards,
> Miguel Correia Ricardo
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
-Andre-

PCs are like air conditioner, if you open Windows, they don't work




-
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: Apache2.x + Apache Tomcat5.x + mod_jk + virtual host on windows XP

2006-10-13 Thread sam

on the same line..
i can access my jsp-examples frm http://localhost/jsp-examples..
but whn i pass my IP address to frnds (whn i m connected to the
internet)...it shows page not available/requested page is not available...
i m using tomcat 5.5 anf apache 2.2.3...
the configuration seems OK to me i m able to access the local apps from
tomcat...
ny suggestions...
thanks

On 10/14/06, Chezang <[EMAIL PROTECTED]> wrote:


hi list,

I have both apache and tomcat working on my windows desktop. I have also
configured mod_jk successfully ( I could access the jsp-examples from
http://localhost/jsp-examples).


I would like to configure virtual host on apache so that i can also
develop other applications in the same web server. I configured mod_jk
connector so that whenever there are requests for jsp and servlet pages
the requests are forwarded to tomcat server.

I have the following doubts and problems:

1. Where do i place the jsp and servlet pages i create in tomcat server.
Do I have to create corresponding virtual host directory in tomcat
server as we do in apache web server?.

2. How do I configure workers properties, server.xml, virtual host and
the corresponding jkmount.


please can anyone give the steps involved in doing these?.

please help me I'm a tomcat newbie.

thanks in advance.

che


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




problems with unpacking ROOT.war

2006-10-13 Thread andrew . w . cooke

Hi there,

We have been finding it difficult to persuade tomcat (5.5.12 and 5.5.17) to
unpack a ROOT.war file, either when starting up tomcat from scratch, or
hot-deploying.

We *were* able to get tomcat to expand the war file if it contains a
META-INF directory containing a context.xml file.  However if this
directory is missing from the war, and instead a ROOT.xml context file is
present in conf/Catalina/localhost before starting tomcat - the war file
*isn't* expanded.

Our server.xml file contains the default settings (unpackWARs="true"
autoDeploy="true").

Any ideas?  We would rather not include context.xml files in the war, as
the same war file will be deployed on different servers, which require
different JNDI resources.

thanks

Andy Cooke


-
This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law.  If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED.  Although this transmission and
any attachments are believed to be free of any virus or other
defect that might affect any computer system into which it is
received and opened, it is the responsibility of the recipient to
ensure that it is virus free and no responsibility is accepted by
JPMorgan Chase & Co., its subsidiaries and affiliates, as
applicable, for any loss or damage arising in any way from its use.
If you received this transmission in error, please immediately
contact the sender and destroy the material in its entirety,
whether in electronic or hard copy format. Thank you.


-
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: Max Memory Reading

2006-10-13 Thread Alan Flisch

Good idea, but nothing set there either.  The fact it's such an odd
number is another perplexing issue.

On Fri, 2006-10-13 at 09:36 +0200, Pascal Alberty wrote:

> /etc/init.d/tomcat5 ?
> Check for -Xms and -Xmm options
> 
> On 10/13/06, Alan Flisch <[EMAIL PROTECTED]> wrote:
> >
> > Already checked that, it's not in the environment and not set in either
> > startup.sh or catalina.sh.
> >
> > On Fri, 2006-10-13 at 14:17 +0700, Lintang JP wrote:
> >
> > > maybe the value for environment variables called JAVA_OPTS equals those
> > > values ?
> > > try to echo $JAVA_OPTS and see if theres any value.
> > >
> > >
> > > On 10/13/06, Alan Flisch <[EMAIL PROTECTED]> wrote:
> > > >
> > > >
> > > > Hi,
> > > >
> > > > I was having some problems with perm gen space on one of our tomcat
> > > > instances and decided to increase the perm gen size and review the
> > > > JAVA_OPTS settings in general when I noticed something curious.  No
> > > > settings are currently made so its just running with default values, but
> > > > the manager status page shows the following...
> > > >
> > > > >Free memory: 158.53 MB Total memory: 373.75 MB Max memory: 913.37 MB
> > > >
> > > > That max memory figure in particular looks like a pretty strange
> > > > default!  I thought  the default was 64m.
> > > >
> > > > The installation details are as follows...
> > > > Apache Tomcat/5.5.16 1.5.0_06-b05 Sun Microsystems Inc. SunOS 5.9 sparc
> > > > The system has 16G of RAM.
> > > >
> > > > Has anybody any thoughts?
> > > >
> > > > Regards,
> > > > Alan
> > > >
> > > >
> > > >
> > > > 
> > > > This e-mail and any accompanying documents contain confidential
> > > > information intended for a specific individual which is private and
> > > > protected by law.
> > > > If you are not the intended recipient, any disclosure, copying,
> > > > distribution or other use of this information is strictly prohibited.
> > > > You are also requested to advise us immediately if you receive 
> > > > information
> > > > which is not addressed to you.
> > > > beCogent is Authorised and Regulated by the Financial Services 
> > > > Authority.
> > > >
> > > > *
> > > >
> > >
> > >
> > >






This e-mail and any accompanying documents contain confidential information 
intended for a specific individual which is private and protected by law.
If you are not the intended recipient, any disclosure, copying, distribution or 
other use of this information is strictly prohibited.
You are also requested to advise us immediately if you receive information 
which is not addressed to you.
beCogent is Authorised and Regulated by the Financial Services Authority.
*

context.xml problem

2006-10-13 Thread Andre Prasetya

Hi All
Adding my yesterday problem, I found this at localhost_log_comium_mt

2006-10-13 14:54:33 StandardContext[/comium_mt]Error configuring application
listener of class com.ricochet.connector.im3.MTQueueProcessor
java.lang.ClassNotFoundException:
com.ricochet.connector.im3.MTQueueProcessor
   at org.apache.catalina.loader.WebappClassLoader.loadClass(
WebappClassLoader.java:1340)
   at org.apache.catalina.loader.WebappClassLoader.loadClass(
WebappClassLoader.java:1189)
   at org.apache.catalina.core.StandardContext.listenerStart(
StandardContext.java:3775)
   at org.apache.catalina.core.StandardContext.start(
StandardContext.java:4343)
   at org.apache.catalina.core.ContainerBase.addChildInternal(
ContainerBase.java:823)
   at org.apache.catalina.core.ContainerBase.addChild(
ContainerBase.java:807)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java
:595)
   at org.apache.catalina.core.StandardHostDeployer.addChild(
StandardHostDeployer.java:903)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.apache.commons.beanutils.MethodUtils.invokeMethod(
MethodUtils.java:252)
   at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
   at org.apache.commons.digester.Rule.end(Rule.java:276)
   at org.apache.commons.digester.Digester.endElement(Digester.java
:1058)
   at org.apache.catalina.util.CatalinaDigester.endElement(
CatalinaDigester.java:76)
   at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
   at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
Source)
   at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
   at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at org.apache.commons.digester.Digester.parse(Digester.java:1567)
   at org.apache.catalina.core.StandardHostDeployer.install(
StandardHostDeployer.java:488)
   at org.apache.catalina.core.StandardHost.install(StandardHost.java
:863)
   at org.apache.catalina.startup.HostConfig.deployDescriptors(
HostConfig.java:482)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java
:427)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:968)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(
HostConfig.java:349)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
LifecycleSupport.java:119)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java
:1091)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java
:789)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java
:1083)
   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java
:478)
   at org.apache.catalina.core.StandardService.start(
StandardService.java:480)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java
:2313)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)

I understand that it tried to find com.ricochet.im3.MTQueueProcessor, but i
dont see it set on any xml (and for this project, we're expecting other
listener). Any ideas where the config might reside ?

--
-Andre-

PCs are like air conditioner, if you open Windows, they don't work


Re: Max Memory Reading

2006-10-13 Thread Pascal Alberty

/etc/init.d/tomcat5 ?
Check for -Xms and -Xmm options

On 10/13/06, Alan Flisch <[EMAIL PROTECTED]> wrote:


Already checked that, it's not in the environment and not set in either
startup.sh or catalina.sh.

On Fri, 2006-10-13 at 14:17 +0700, Lintang JP wrote:

> maybe the value for environment variables called JAVA_OPTS equals those
> values ?
> try to echo $JAVA_OPTS and see if theres any value.
>
>
> On 10/13/06, Alan Flisch <[EMAIL PROTECTED]> wrote:
> >
> >
> > Hi,
> >
> > I was having some problems with perm gen space on one of our tomcat
> > instances and decided to increase the perm gen size and review the
> > JAVA_OPTS settings in general when I noticed something curious.  No
> > settings are currently made so its just running with default values, but
> > the manager status page shows the following...
> >
> > >Free memory: 158.53 MB Total memory: 373.75 MB Max memory: 913.37 MB
> >
> > That max memory figure in particular looks like a pretty strange
> > default!  I thought  the default was 64m.
> >
> > The installation details are as follows...
> > Apache Tomcat/5.5.16 1.5.0_06-b05 Sun Microsystems Inc. SunOS 5.9 sparc
> > The system has 16G of RAM.
> >
> > Has anybody any thoughts?
> >
> > Regards,
> > Alan
> >
> >
> >
> > 

> > This e-mail and any accompanying documents contain confidential
> > information intended for a specific individual which is private and
> > protected by law.
> > If you are not the intended recipient, any disclosure, copying,
> > distribution or other use of this information is strictly prohibited.
> > You are also requested to advise us immediately if you receive information
> > which is not addressed to you.
> > beCogent is Authorised and Regulated by the Financial Services Authority.
> >
> > 
*
> >
>
>
>

Alan Flisch
Senior Developer
beCogent Ltd.
www.beCogent.com

T: +44 (0)1236 628 113
F: +44 (0)1236 628 101
E: [EMAIL PROTECTED]



This e-mail and any accompanying documents contain confidential information 
intended for a specific individual which is private and protected by law.
If you are not the intended recipient, any disclosure, copying, distribution or 
other use of this information is strictly prohibited.
You are also requested to advise us immediately if you receive information 
which is not addressed to you.
beCogent is Authorised and Regulated by the Financial Services Authority.
*




--
Pascal Alberty
http://pascal.albertyorban.be

-
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: Max Memory Reading

2006-10-13 Thread Alan Flisch

Already checked that, it's not in the environment and not set in either
startup.sh or catalina.sh.

On Fri, 2006-10-13 at 14:17 +0700, Lintang JP wrote:

> maybe the value for environment variables called JAVA_OPTS equals those
> values ?
> try to echo $JAVA_OPTS and see if theres any value.
> 
> 
> On 10/13/06, Alan Flisch <[EMAIL PROTECTED]> wrote:
> >
> >
> > Hi,
> >
> > I was having some problems with perm gen space on one of our tomcat
> > instances and decided to increase the perm gen size and review the
> > JAVA_OPTS settings in general when I noticed something curious.  No
> > settings are currently made so its just running with default values, but
> > the manager status page shows the following...
> >
> > >Free memory: 158.53 MB Total memory: 373.75 MB Max memory: 913.37 MB
> >
> > That max memory figure in particular looks like a pretty strange
> > default!  I thought  the default was 64m.
> >
> > The installation details are as follows...
> > Apache Tomcat/5.5.16 1.5.0_06-b05 Sun Microsystems Inc. SunOS 5.9 sparc
> > The system has 16G of RAM.
> >
> > Has anybody any thoughts?
> >
> > Regards,
> > Alan
> >
> >
> >
> > 
> > This e-mail and any accompanying documents contain confidential
> > information intended for a specific individual which is private and
> > protected by law.
> > If you are not the intended recipient, any disclosure, copying,
> > distribution or other use of this information is strictly prohibited.
> > You are also requested to advise us immediately if you receive information
> > which is not addressed to you.
> > beCogent is Authorised and Regulated by the Financial Services Authority.
> >
> > *
> >
> 
> 
> 

Alan Flisch
Senior Developer
beCogent Ltd.
www.beCogent.com

T: +44 (0)1236 628 113
F: +44 (0)1236 628 101
E: [EMAIL PROTECTED] 



This e-mail and any accompanying documents contain confidential information 
intended for a specific individual which is private and protected by law.
If you are not the intended recipient, any disclosure, copying, distribution or 
other use of this information is strictly prohibited.
You are also requested to advise us immediately if you receive information 
which is not addressed to you.
beCogent is Authorised and Regulated by the Financial Services Authority.
*

Re: Max Memory Reading

2006-10-13 Thread Lintang JP

maybe the value for environment variables called JAVA_OPTS equals those
values ?
try to echo $JAVA_OPTS and see if theres any value.


On 10/13/06, Alan Flisch <[EMAIL PROTECTED]> wrote:



Hi,

I was having some problems with perm gen space on one of our tomcat
instances and decided to increase the perm gen size and review the
JAVA_OPTS settings in general when I noticed something curious.  No
settings are currently made so its just running with default values, but
the manager status page shows the following...

>Free memory: 158.53 MB Total memory: 373.75 MB Max memory: 913.37 MB

That max memory figure in particular looks like a pretty strange
default!  I thought  the default was 64m.

The installation details are as follows...
Apache Tomcat/5.5.16 1.5.0_06-b05 Sun Microsystems Inc. SunOS 5.9 sparc
The system has 16G of RAM.

Has anybody any thoughts?

Regards,
Alan




This e-mail and any accompanying documents contain confidential
information intended for a specific individual which is private and
protected by law.
If you are not the intended recipient, any disclosure, copying,
distribution or other use of this information is strictly prohibited.
You are also requested to advise us immediately if you receive information
which is not addressed to you.
beCogent is Authorised and Regulated by the Financial Services Authority.

*





--
---
Laboratorium Pemrograman Kehidupan
Kavling Bumi, Galaksi Bimasakti
D.u.n.i.a

#365364 Registered Linux User


Max Memory Reading

2006-10-13 Thread Alan Flisch

Hi,

I was having some problems with perm gen space on one of our tomcat
instances and decided to increase the perm gen size and review the
JAVA_OPTS settings in general when I noticed something curious.  No
settings are currently made so its just running with default values, but
the manager status page shows the following...

>Free memory: 158.53 MB Total memory: 373.75 MB Max memory: 913.37 MB

That max memory figure in particular looks like a pretty strange
default!  I thought  the default was 64m.  

The installation details are as follows...
Apache Tomcat/5.5.16 1.5.0_06-b05 Sun Microsystems Inc. SunOS 5.9 sparc
The system has 16G of RAM.

Has anybody any thoughts?

Regards,
Alan



This e-mail and any accompanying documents contain confidential information 
intended for a specific individual which is private and protected by law.
If you are not the intended recipient, any disclosure, copying, distribution or 
other use of this information is strictly prohibited.
You are also requested to advise us immediately if you receive information 
which is not addressed to you.
beCogent is Authorised and Regulated by the Financial Services Authority.
*