Re: Error when executing .jsp in Apache 5.5

2009-11-12 Thread Martin Choma
see http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html
for classpath guidelance, and section
"XML Parsers and J2SE 1.4"
Martin

2009/11/12 John McCleskey :
> I'm webfacing some 5250 applications utilizing WDSC 7.0 and when I attempt
> to test a project, the Apache web server throws the Java exception:
>
> java.lang.NoClassDefFoundError: org/apache/xerces/parsers/DOMParser
> i believe it is a classpath issue, but i'm not sure where to modify that for
> the test web server. any help would be greatly appreciated.
>
> --
> Regards,
>
> John
>

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



Re: Memory, handles and threads increasing in Tomcat 5.5

2009-11-12 Thread Martin Choma
If you say load is constant, seems to me that threads are stuck for
some reason and tomcat create chunk of another. Thread dumps can
provide answer to what are stucked threads waiting for.

Thread dumps can be taken for example with jconsole, which is part of jdk.


Martin


2009/11/12 Goldsmith, Neil J. (Neil) :
> We are using Tomcat 5.5 to run high load through our servlets for about
> 24 hours.   The tests run a constant load and repeat the same set of
> tests over and over.   We are using perf mon to keep an eye on various
> counters in Tomcat.
>
> We find after about 8 hours, we see this huge jump in thread count,
> memory and handles inside Tomcat.  All at once, we about double these
> values.  This  happens over a very short time span, just a few minutes.
> We don't drop back down to our old levels, but continue on at these new
> levels without gaining and then another jump will occur about 6 hours
> later (the time span is not consistent).  That graph of threads, total
> mem and handles for this behavior looks like a staircase.
>
> Looking at logs from our servlets, there is no unexpected behavior
> during these huge jumps.  They are chugging along handling the traffic
> as expected and don't have any delays or out of the ordinary behavior.
>
> Does this sound like a GC issue?  these are the settings we invoke TC
> with.
> JAVA_OPTS="-server -Xmx1024M -XX:+UseConcMarkSweepGC -XX:+UseParNewGC
> -XX:ThreadStackSize=512"
>
> What is the best tool we can use to gather better information around the
> problem, both free and for fee?
>
>           thank you,
>           Neil
>
>

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



Re: Connection Timeout

2009-11-12 Thread Martin Choma
Here are some timeout settings
http://tomcat.apache.org/connectors-doc/generic_howto/timeouts.html.

Can I ask, what brings you to such requirements. I consider it for
little bit unusual. So what is your case originally? If you tell us,
maybe another solution could be take.

Martin

2009/11/12 vichi :
>
> i want to close a connection if i don't get response back in specific time
> (let say in 30 sec) . is there any setting in tomcat for this purpose.
>
> Test case: " I deployed a servlet in my stand alone tomcat. that servlet has
> thread.sleep(5) code in it. i want that if a user send a request and he
> doesnt get response back in 3 sec then tomcat close the connection which was
> opened for that request and so user doesnt get any response. since my
> servlet has thread.sleep(5) code in it so to genrate a response will
> take at least 5sec. in sort if response time is more than 3 second the
> tomcat should close connection and user should not get any response
> back"..is there any setting or facility provided by tomcat if not how
> can i do it.
>
> i am using tomcat:-5.5.23 , OS:- Windos XP, Connector:- non-SSL HTTP/1.1
> Connector
>
> please need an urgent help
> --
> View this message in context: 
> http://old.nabble.com/Connection-Timeout-tp26315289p26315289.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

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



Re: Want to customise the tomcat's session logic

2009-11-09 Thread Martin Choma
Ok, i think i see what you mean. As far as I know there is no quickwin
for that. Web application suffer with this disease - that mean sharing
session over tabs. You have got three choices to deal with that.
A) You dont mind :)
B) You will prevent to work in multitabs over one session
C) You choose the third and the hardest - to support it :)

Here are some ideas, but no of them is 100%
1) set tomcat to use URL rewriting indtead of cookies
(http://tomcat.apache.org/tomcat-6.0-doc/config/context.html)
2) produce some tab/browser identification and divide session (maybe
window.name property could be helpfull)
3) Look at JBoss Seam, it also support multitab browsing without
harming session as i know.

Good luck ;)

2009/11/7 S Arvind :
> To my knowledge, there is no "path" attribute in the session. Are you
> proposing that you add one?
>>> deploy one app in tomcat by having context xml in
> catalina>>domain>>xxx.xml . When you access this app check the session u
> will find the path attribute with xxx in it.
>
>
> So... do you mean that you want to deploy one web application (into a
> single context), but you want to separate certain parts of the session
> into different "areas" of the webapp?
>>> yes
>
>
> I don't believe that deploying the same webapp multiple times into
> different contexts has any effect on session sharing: Tomcat will treat
> them as different webapps and no session sharing will occur unless you
> have taken other steps to share sessions between contexts.
>>> Session sharing will not occur for different context. But i need to have
> single context still session should not be shared. Is it possible in single
> context.??
>
> Consider i have one login app, after login i track the state by session.
> First i login that website in single tab in browser and session was created
> with details in it. And in another tab or window i need to login with
> different username without sharing the session. But if i did this first
> created session was overwrite by second session. Wat i need is two different
> session for same webapp running under single tomcat???
>
> IS it possible??
>
> Arvind S
>
>
> "Many of lifes failure are people who did not realize how close they were to
> success when they gave up."
> -Thomas Edison
>
>
> On Sat, Nov 7, 2009 at 7:14 AM, Christopher Schultz <
> ch...@christopherschultz.net> wrote:
>
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>> Arvind,
>>
>> On 11/2/2009 5:06 AM, S Arvind wrote:
>> > Basically my requirement is ability to control the session
>> > sharing in browser. Till now we maintained each application as different
>> > context but pointing to same doc-base. So different web application will
>> be
>> > running on a same code to control the session sharing between different
>> > application.
>>
>> I don't believe that deploying the same webapp multiple times into
>> different contexts has any effect on session sharing: Tomcat will treat
>> them as different webapps and no session sharing will occur unless you
>> have taken other steps to share sessions between contexts.
>>
>> > But now we want to run in same context as one application but
>> > control the session sharing.
>>
>> So... do you mean that you want to deploy one web application (into a
>> single context), but you want to separate certain parts of the session
>> into different "areas" of the webapp?
>>
>> > So i planned to customise session creation n
>> > management of the tomcat to our requirements to add some value to
>> > *path* attribute in session. Is this possible?
>>
>> To my knowledge, there is no "path" attribute in the session. Are you
>> proposing that you add one?
>>
>> Modifying Tomcat's session management code is probably going to lead you
>> down a path that leads to insanity: the APIs are not (officially)
>> stable, there is no standard, etc.
>>
>> I suspect there is a better way to accomplish what you want to do... I
>> just don't really understand what you want to do. Instead of speaking in
>> generalities, why not give us a use case?
>>
>> - -chris
>> -BEGIN PGP SIGNATURE-
>> Version: GnuPG v1.4.10 (MingW32)
>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>>
>> iEYEARECAAYFAkr00RcACgkQ9CaO5/Lv0PBeqwCfQK7r/8a0jn2jiHxyLkU0ypyA
>> uXUAn19ms08C6ydU6DvZTdg6Ep6za6at
>> =kDId
>> -END PGP SIGNATURE-
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
>

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



Re: Tomcat Memory and Garbage Collection questions...

2009-11-02 Thread Martin Choma
Hi,

in fact, garbage collection is not tomcat stuff. It is JVM responsibility.

So try to focus on jvm memory problem, not tomcat memory problem.
Maybe some memory leak?

Martin

2009/11/2 Johnson, Trevin (Contractor) :
> Hello
> OS Version: Windows 2000
> Tomcat version:5.5.17
> Initial Memory Pool: 768
> Maximum Memory Pool:1024
> Java Version: Java\jdk1.5.0_14
>
> When we restart the tomcat service our tomcat memory is about 120Mb. It keeps 
> going up over the next few days util it reaches 700Mb and we have to reboot 
> the server. We do not see any errors just yet but the server gets close to 
> maxing out
> I have questions around garbage collection for tomcat
>
> Questions:
> 1.We do not see the memory going down for the tomcat service. Shouldn't the 
> memory go down as well as up over this timespan
> 2.Should the memory get to maximum 768Mb and then go back down or get 
> recycled?
> 3.Is this a bug or what is normal behavior for the tomcat memory?
>
> 4.. How do we implement garbage collection for our windows server(-Xincgc)?
>
> I am very new to Tomcat and trying to manage/decrease the memory footprint 
> used by Tomcat?
> Your help is most appreciated...
>
> Thanks
> trevin.john...@occ.treas.gov
>
>

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