Re: CVE-2012-4534 Apache Tomcat denial of service

2012-12-04 Thread Stephen Caine
Jim,

Check your Tomcat version.

http://localhost:8080/

Stephen

On Dec 4, 2012, at 2:47 PM, Mark Thomas  wrote:

> CVE-2012-4534 Apache Tomcat denial of service
> 
> Severity: Important
> 
> Vendor: The Apache Software Foundation
> 
> Versions Affected:
> - Tomcat 7.0.0 to 7.0.27
> - Tomcat 6.0.0 to 6.0.35
> 
> Description:
> When using the NIO connector with sendfile and HTTPS enabled, if a
> client breaks the connection while reading the response an infinite loop
> is entered leading to a denial of service. This was originally reported
> as https://issues.apache.org/bugzilla/show_bug.cgi?id=52858.
> 
> Mitigation:
> Users of affected versions should apply one of the following mitigations:
> - Tomcat 7.0.x users should upgrade to 7.0.28 or later
> - Tomcat 6.0.x users should upgrade to 6.0.36 or later
> 
> Credit:
> The security implications of this bug were identified by Arun Neelicattu
> of the Red Hat Security Response Team.
> 
> References:
> http://tomcat.apache.org/security.html
> http://tomcat.apache.org/security-7.html
> http://tomcat.apache.org/security-6.html
> 
> -
> 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: JSP page that will not update

2011-10-07 Thread Stephen Caine
Konstantin
>> 
>> I have set meta tags for no cache, no pragma, etc., all to no avail.
> 
> What do you mean?
>  tags inside HTML document are useless for this. You have to set
> HTTP headers.

OK, but can you point me to where I might learn how to do this?
>> 
>> What is most interesting is that all of this worked in Tomcat 5.5.7, but now 
>> using Tomcat 5.5.34, re-opening a page does not automatically refresh 
>> content.
> 
> What browser it is?

Firefox and Safari on several different Mac OS X operating systems from 10.4 to 
10.7.
> 
>> Can you point me to information concerning AccessLogValves, please.
> 
> webapps/docs/config/index.html -> see Valves

Thank you,

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



Re: JSP page that will not update

2011-10-06 Thread Stephen Caine
Konstantin,

Thank you for your reply.  I will try to be more specific.

The function I have on the page is a simple call to the OS (Mac) for the 
current date and time.  The first time the page is called, the current date and 
time is shown.  However, if the window is closed and the page is called again, 
the original date and time are shown, not the current date and time.  If I 
reload the page using menu commands, the date and time are updated, but 
re-opening the page does not update the date and time.  Note however, 
re-opening the page after 5 attempts, will eventually update the date and time.

I have set meta tags for no cache, no pragma, etc., all to no avail.

What is most interesting is that all of this worked in Tomcat 5.5.7, but now 
using Tomcat 5.5.34, re-opening a page does not automatically refresh content.

Can you point me to information concerning AccessLogValves, please.

I appreciate you time.

Stephen Caine


On Oct 6, 2011, at 7:47 PM, Konstantin Kolinko wrote:

> 2011/10/7 Stephen Caine :
>> List users,
>> 
>> I recently updated to Tomcat 5.5.34 from 5.5.7.  Keeping all the 
>> configuration files the same, I now notice that a jsp page that opens cached 
>> data whereas before the page always loaded updated data.  The call to the 
>> page is via a javascript using window.open.
>> 
> 
> Your description is too high-level.
> 
> You need to find what actually happens. Either
> a) the page generates stale data
> b) the page is not requested by browser (a stale copy is used)
> 
> a) happens on server,
> b) happens in the browser, but depends on what HTTP headers are
> returned with your response.
> 
> You need to perform some investigation, what really happens, and
> whether it is a) or b).
> At least, configure an AccessLogValve in Tomcat.
> 
>> Some questions…
>> 
>> 1.  Has Tomcat 5.5.34 introduced some change that might account for what I 
>> am experiencing?
> 
> :/
> 
>> 2.  Is there a setting in Tomcat that can be tweaked to address my issue?
> 
> See above.
> 
> Best regards,
> Konstantin Kolinko
> 
> -
> 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



JSP page that will not update

2011-10-06 Thread Stephen Caine
List users,

I recently updated to Tomcat 5.5.34 from 5.5.7.  Keeping all the configuration 
files the same, I now notice that a jsp page that opens cached data whereas 
before the page always loaded updated data.  The call to the page is via a 
javascript using window.open.

Some questions…

1.  Has Tomcat 5.5.34 introduced some change that might account for what I am 
experiencing?
2.  Is there a setting in Tomcat that can be tweaked to address my issue?

Thank you,

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



Re: Java update from Apple broke Tomcat

2010-11-02 Thread Stephen Caine
Rob,

We use Tomcat 6.0.28 on Mac OS X 10.6.4 with the latest Java update and it 
seems to start up just fine.

Stephen Caine
Soft Breeze Systems, LLC

On Nov 1, 2010, at 1:55 PM, Rob Tanner wrote:

> Hi,
> 
> While I run production on Linux servers, I do my development on my iMac.
> Last week, I ran the most recent Apple Java upgrade , and now Tomcat (which
> is a critical part of my development environment) won't start up.  I get the
> error:
> 
> Nov 1, 2010 8:58:54 AM org.apache.catalina.startup.Bootstrap
> initClassLoaders
> SEVERE: Class loader creation threw exception
> java.lang.NoSuchFieldError: IS_DIR
> at 
> org.apache.catalina.startup.Bootstrap.createClassLoader(Bootstrap.java:167)
> at 
> org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java:92)
> at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:207)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:391)
> 
> Other details:
> 
> java version "1.6.0_22"
> Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-10M3261)
> Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)
> 
> Tomcat version:  6.0.18 and 6.0.29 — both fail to start, throwing the same
> exception
> 
> From the error, it appears that things are missing from the update (or at
> least one field is).  Has anyone else seen this?  Is there a known
> work-around?
> 
> Thanks,
> 
> Rob Tanner
> Linfield College


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



Re: Tabbed browsers sharing session - work around.

2010-10-05 Thread Stephen Caine
Rob,

The way you describe session sharing is indeed a problem.  The way we deal with 
this is to use a separate database table to keep track of window ids.  A unique 
value is assigned when a window is opened and maintained until the window is 
closed.  Although the session may be the same for all open windows (tabs), the 
window id is unique.  Significant values are posted to the window table and 
retrieved based on the window id.

If there is another method using a Tomcat centric approach, I would love to 
hear about it.

Stephen

On Oct 5, 2010, at 9:01 AM, Ronald Klop wrote:

> Rob,
> 
> IE 6 is even more confusing. If you open a new window with ctrl-N you have 
> the same session sharing as with tabs. Only if you click the IE6-icon to 
> start a new instance of the process it will not share them. Opening a new tab 
> in IE7 is like using ctrl-n to open a new window in IE6.
> 
> Ronald.
> 
> 
> Op dinsdag, 5 oktober 2010 10:26 schreef Rob Gregory 
> :
>> Hi Chris,
>> Is there any way to dynamically create these contexts or do they require a 
>> live.xml, test.xml, etc within conf/Catalina/localhost. The multiple 
>> contexts would be my preferred approach although I would like to achieve 
>> this with a single code base if this is possible. The multiple environments 
>> are driven purely by the backend database connection, i.e. the code is the 
>> same with the only difference being where the data is being saved to. Hence 
>> the requirement to stop the browser sharing the same session when in 
>> different database connections. I'm surprised that other people are not 
>> having the same issues since the browser manufacturers decided to make this 
>> crazy change to session management between tabs/instances and suddenly share 
>> the same session. In I.E.6 two browser instances would be two separate 
>> sessions. I.E.7 they are the same session! Thanks for your input.
>> Kind Regards,
>> Rob.
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>> Ronald,
>> On 10/4/2010 6:11 AM, Ronald Klop wrote:
>> > You can run your test environment on another hostname.
>> > > live.example.com
>> > test.example.com
>> > train.example.com
>> Or under another context:
>> http://www.example.com/live
>> http://www.example.com/test
>> http://www.example.com/train
>> The real question is why there's any confusion: your hostnames and/or
>> URLs ought to be unique enough already. Otherwise, this sort of
>> foolishness can affect your "real" users and you'll leak data all over
>> the place.
>> - -chris
>> -BEGIN PGP SIGNATURE-
>> Version: GnuPG v1.4.10 (MingW32)
>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>> iEYEARECAAYFAkyqDDQACgkQ9CaO5/Lv0PDWRACgrlgU+jY+n8nMCZ2WTO63UHDh
>> 10UAoJdyNWqu0nlRGcWbJ6Mcc7zbsGy+
>> =JP4k
>> -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: Session problem

2010-08-25 Thread Stephen Caine
Jason,

I was referring to an issue where a user opens several tabbed references to the 
same window.  If the session value is changed in one window, the value will 
change in subsequent references in the other tabbed window(s).  Actually, this 
is significant problem, but if this is not what was being asked, then ignore my 
comment.

Stephen

On Aug 24, 2010, at 8:06 PM, Jason Britton wrote:

> Stephen - your statement doesn't really make sense in context to the
> problem he described or how I replied.  From Hisham's first post I
> believe he's describing tabs within the context of a single web page
> interface, when he clicks on any of the three tabs a request is made
> (asynchronous or otherwise), request passes through a servlet filter
> that checks for existence of session attribute etc..  I was suggesting
> he check that he hadn't, for some unknown reason, hardcoded a
> different domain for the "Messages" link, if that were the case that
> domain (eg. localhost instead of dev2) would not have the same session
> as the other links and the session attribute value he was looking for
> might not be there, which would fit with what he's describing.
> 
> Jason
> 
> 
> On Tue, Aug 24, 2010 at 3:37 PM, Stephen Caine  wrote:
>> Jason,
>> 
>> As each window shares the same session, a change to the session value in one 
>> window will effect the session value in the others.
>> 
>> Stephen Caine
>> 
>> On Aug 24, 2010, at 5:21 PM, Jason Britton wrote:
>> 
>>> I would make sure that the link for your "Messages" tab is going to the same
>>> domain as that your session was established under and is hitting the same
>>> domain as your "Home" and "Admin" links.  This doesn't seem to have anything
>>> to do with Tomcat though.
>>> 
>>> 
>>> On Tue, Aug 24, 2010 at 1:53 PM, Hisham  wrote:
>>> 
>>>> Hello all,
>>>> 
>>>> I have a problem that is driving me crazy.  I don't even know if its a
>>>> Tomcat issue but maybe someone out there can help me out.
>>>> 
>>>> I have a webapp that I first developed locally.  I tested this on my
>>>> local environment (windows) and had no issues.  I then deployed the
>>>> same app to our QA environment (linux).  There i am seeing something
>>>> strange.  There are three main tabs, "Home", "Messages" and "Admin".
>>>> I can go between home and admin, no probs.  But once i click on
>>>> Messages, somehow the session on the server gets messed up.  The way i
>>>> check whether session is valid is not is that I have a filter that
>>>> will check if a certain attribute is present in the session or not.
>>>> If its not, i assume the session is invalid and forward to login page.
>>>> As soon as i click on the Messages link, i cannot do anything else;
>>>> anywhere else i click it takes me to the login page.  I put print
>>>> statements in my filter and verified that it is not able to find the
>>>> attribute in the session.  Which is strange because the session id is
>>>> the same (i have verified by printing it out, and also seeing what is
>>>> sent in the actual request headers via firebug).  I am not removing
>>>> the attribute from the session in any place; and in any case it works
>>>> fine locally as i said before.
>>>> 
>>>> Does any one have any clue as to what could be happening?  I can post
>>>> code if needed, but i don't know where to begin :)
> 
> -
> 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: Session problem

2010-08-24 Thread Stephen Caine
Jason,

As each window shares the same session, a change to the session value in one 
window will effect the session value in the others.

Stephen Caine

On Aug 24, 2010, at 5:21 PM, Jason Britton wrote:

> I would make sure that the link for your "Messages" tab is going to the same
> domain as that your session was established under and is hitting the same
> domain as your "Home" and "Admin" links.  This doesn't seem to have anything
> to do with Tomcat though.
> 
> 
> On Tue, Aug 24, 2010 at 1:53 PM, Hisham  wrote:
> 
>> Hello all,
>> 
>> I have a problem that is driving me crazy.  I don't even know if its a
>> Tomcat issue but maybe someone out there can help me out.
>> 
>> I have a webapp that I first developed locally.  I tested this on my
>> local environment (windows) and had no issues.  I then deployed the
>> same app to our QA environment (linux).  There i am seeing something
>> strange.  There are three main tabs, "Home", "Messages" and "Admin".
>> I can go between home and admin, no probs.  But once i click on
>> Messages, somehow the session on the server gets messed up.  The way i
>> check whether session is valid is not is that I have a filter that
>> will check if a certain attribute is present in the session or not.
>> If its not, i assume the session is invalid and forward to login page.
>> As soon as i click on the Messages link, i cannot do anything else;
>> anywhere else i click it takes me to the login page.  I put print
>> statements in my filter and verified that it is not able to find the
>> attribute in the session.  Which is strange because the session id is
>> the same (i have verified by printing it out, and also seeing what is
>> sent in the actual request headers via firebug).  I am not removing
>> the attribute from the session in any place; and in any case it works
>> fine locally as i said before.
>> 
>> Does any one have any clue as to what could be happening?  I can post
>> code if needed, but i don't know where to begin :)
>> 


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



Re: Expression Language Changes

2009-11-18 Thread Stephen Caine
Mark,

Thank you.  I'll check it out.
> 
>> Where can I find a full and complete list of changes made to the expression 
>> language (EL) starting with Tomcat v5.5.7 through Tomcat v6.0.20?  I need 
>> for this to be a detailed as possible.
> 
> http://svn.apache.org/viewvc/tomcat/


Expression Language Changes

2009-11-18 Thread Stephen Caine
Where can I find a full and complete list of changes made to the expression 
language (EL) starting with Tomcat v5.5.7 through Tomcat v6.0.20?  I need for 
this to be a detailed as possible.

Thank you,

Stephen Caine
CommonGround Softworks, Inc.
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Problem with maximum threads

2009-04-21 Thread Stephen Caine

Chuck,

This is the number of threads Tomcat will handle before it errors with  
'max threads reached.  This is on OS X, 64 bit memory.  The heap size  
is 2 gigs.


If you know how to increase this number, then please provide the  
information.  Others have also noted this limit on OS X in previous  
posts to this list.


Stephen

On Apr 21, 2009, at 9:38 AM, Caldarale, Charles R wrote:


From: Stephen Caine [mailto:step...@commongrnd.com]
Subject: Re: Problem with maximum threads

However, the maximum number of threads Tomcat will
handle is somewhere about 2400.


I'm curious: where did you conjure up that number?  The actual limit  
will vary greatly depending on platform, JVM level, heap size, heap  
usage, and especially 32- or 64-bit environments.


- Chuck


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




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




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



Re: Problem with maximum threads

2009-04-21 Thread Stephen Caine

Anand,

As others will surely tell you, there is something amiss in your  
application that spawns threads.  However, the maximum number of  
threads Tomcat will handle is somewhere about 2400.  So, if you are  
getting an error at 1000 threads, look somewhere else.


Stephen Caine
Soft Breeze Systems, LLC

On Apr 21, 2009, at 7:34 AM, connossieur wrote:



Hi,

I am using Tomcat 6.0.9 with the following server.xml config file:

The Java version I am using is JDK1.6.0_06.
The problem is with the tomcat web app being used for a load test at  
200
messages/sec. The application runs well enough for half an hour but  
after
that time, the CPU consumption is maximum and idle is 0. Also, there  
are
more than 1000 threads even if I have configured the maximum threads  
to be

70 in the configuration. There is no problem in the application code.

Where can be the problem in the Tomcat?
Thanks,
Anand
--
View this message in context: 
http://www.nabble.com/Problem-with-maximum-threads-tp23154175p23154175.html
Sent from the Tomcat - User mailing list archive at Nabble.com.



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



Re: JavaBridge Payment Gateway Issue on Tomcat

2009-03-07 Thread Stephen Caine

Gaurav


To the best of my knowledge, JavaBridge is no longer supported.  Use  
JNI.


Stephen Caine
Soft Breeze Systems, LLC

On Mar 7, 2009, at 1:39 AM, Gaurav Pruthi wrote:


Dear All,

I am facing a strange issue in tomcat from last 2 months. I have 2  
websites

which are running on PHP. They took tomcat hosting for Payment Gateway
Configuration as we only provide JRE in tomcat environment.. I am  
using

JavaBridge for this purpose.

Once it is configured and PG is working perfectly. Issue appears  
when i give

restart to tomcat server. Here are the details i am using

Tomcat 6.0.16
JRE 1.6
Apache 1.37
PHP v5
JavBridge 5.4.3.1



After restart i gets this error:

*Fatal error*: Uncaught [[o:Exception]:"java.lang.Exception: Invoke  
failed:
[[o:PostLib]]->postSSL([o:BillToAddress], [o:ShipToAddress],  
[o:Merchant],

[o:MPIData], null, [o:PGReserveData], [o:CustomerDetails],
[o:SessionDetail], [o:AirLineTransaction], [o:MerchanDise]). Cause:
java.lang.ClassNotFoundException: Unresolved external reference:
java.lang.NoClassDefFoundError: javax/servlet/http/ 
HttpServletResponse. --
Unable to call the method, see the README section "Java platform  
issues" for
details and DO NOT REPORT THIS PROBLEM TO THE PHP/Java Bridge  
MAILING LIST!

VM: 1.6.0...@http://java.sun.com/"; at: #-6
php 
.java 
.bridge 
.JavaBridge.getUnresolvedExternalReferenceException(JavaBridge.java: 
434)

#-5 php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1092) #-4
php.java.bridge.Request.handleRequest(Request.java:405) #0
/usr/local/tomcat/webapps/www.domain.com/java/Java.inc(334):
java_ThrowExceptionProxyFactory->getProxy(15, '@V', 'Unresolved  
exte...',
true) #1 /usr/local/tomcat/webapps/www.domain.com/java/ 
Java.inc(491): j in *

/usr/local/tomcat/webapps/www.domain.com/java/Java.inc* on line *297*


If i restart tomcat 2-3 times, it starts working. I am unable to  
understand
why it is unable to find class which is associated with servlet- 
api.jar
which is copied to tomcat lib directory, jre lib directory and  
JavaBridge
lib path. But when i give restart to tomcat using shutdown.sh/ 
startup.sh
twice or thrice, it starts working. Hence it is a hit and try  
solution for

me.

Issue is with only payment gateway websites which are using JavaBridge


Kindly let me know if more information is required on the scanario
configured at my end.

Any help will be highly. appreciated.



Gaurav Pruthi



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



Re: Java Crash

2009-01-28 Thread Stephen Caine

Chris,


This is very helpful.  It strongly suggests the issue is memory  
management, not JFreeChart.


I'd put my money on bad hardware. Every single time I've seen a  
release version of a JVM fail, it's because of bad memory, CPU,  
motherboard, or the combination thereof.


I recommend trying the same code and configuration on a separate  
physical machine to see if that might be the problem. Does Mac have  
anything like memtest86? Can you even run that on x86-based Macs?


My initial presumption was bad memory, but after running a very  
intensive memory test (provided by Apple), no problems were found.   
Also, no other process results in a JVM crash.  Only when JFreeChart  
is run does the JVM crash.  This is an X-Serve, dual core intel that  
has 12 gigs of RAM running OS X 10.5.


Stephen Caine
Soft Breeze Systems, LLC

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



Re: Java Crash

2009-01-23 Thread Stephen Caine

Ken,

This is very helpful.  It strongly suggests the issue is memory  
management, not JFreeChart.


Thanks,

Stephen

On Jan 23, 2009, at 2:28 PM, Ken Bowen wrote:

Just a datapoint:  I have a webapp which does basic graph  
construction using JFreeChart which has been running in development  
mode on a Mac OS X 10.5.6 under both Tomcat 5.5.26 and 6.0.18 for  
many months, and has never produced such a crash.


On Jan 23, 2009, at 1:56 PM, Stephen Caine wrote:


Jonathan,

that is almost certainly an Apple Java issue.  If by charting, you  
mean graphics, then even more so.  The Java2D api on Mac still has  
bugs that will crash.


I am sorry that I did not specify the charting jsp.  We are using  
the ones provided by CEWolf (based on JFreeChart).


Stephen Caine

-
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




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



Re: Java Crash

2009-01-23 Thread Stephen Caine

Jonathan,

that is almost certainly an Apple Java issue.  If by charting, you  
mean graphics, then even more so.  The Java2D api on Mac still has  
bugs that will crash.


I am sorry that I did not specify the charting jsp.  We are using the  
ones provided by CEWolf (based on JFreeChart).


Stephen Caine

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



Java Crash

2009-01-23 Thread Stephen Caine

All,

Whenever I attempt to access a charting jsp, I get an invalid memory  
access error and the JVM just crashes.  Here are the relevant portions  
of the java crash log.  Any thoughts would be appreciated.  Is this an  
Apple Java issue??


Stephen Caine
CommonGround Softworks, Inc.

___

Process: java [67620]
Path:
/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/java
Identifier:  java
Version: ??? (???)
Code Type:   X86-64 (Native)
Parent Process:  launchd [1]

Date/Time:   2009-01-21 14:53:08.281 -0500
OS Version:  Mac OS X Server 10.5.5 (9F33)
Report Version:  6

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0001b6f272f8
Crashed Thread:  28

Application Specific Information:

Java information:
Exception type: Bus Error (0xa) at pc=0x0001010a633d

Java VM: Java HotSpot(TM) 64-Bit Server VM (1.6.0_07-b06-57 mixed mode
macosx-amd64)

Heap
PSYoungGen  total 690496K, used 680383K [0x00018a56,  
0x0001b500, 0x0001b500)
eden space 684160K, 98% used  
[0x00018a56,0x0001b37a0de0,0x0001b418)
from space 6336K, 99% used  
[0x0001b418,0x0001b47aeeb0,0x0001b47b)
to   space 8384K, 0% used  
[0x0001b47d,0x0001b47d,0x0001b500)
PSOldGentotal 1398144K, used 1296068K [0x00013500,  
0x00018a56, 0x00018a56)
object space 1398144K, 92% used  
[0x00013500,0x0001841b11d0,0x00018a56)
PSPermGen   total 437248K, used 431571K [0x00010500,  
0x00011fb0, 0x00013500)
object space 437248K, 98% used  
[0x00010500,0x00011f574c70,0x00011fb0)


Virtual Machine Arguments:
JVM Args: -Xserver -Xms2048m -Xmx2048m -XX:+MaxFDLimit - 
XX:MaxPermSize=768m

-XX:+UseParallelGC -Djava.awt.headless=true
-Djava.endorsed.dirs=/Applications/Qilan 3/Tomcat_Qilan//common/endorsed
-Dcatalina.base=/Applications/Qilan 3/Tomcat_Qilan/
-Dcatalina.home=/Applications/Qilan 3/Tomcat_Qilan/
-Djava.io.tmpdir=/Applications/Qilan 3/Tomcat_Qilan//temp
Java Command: org.apache.catalina.startup.Bootstrap start
Launcher Type: SUN_STANDARD
Physical Memory: Page Size = 4k, Total = 2048M, Free = 1811M

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



Re: Appeal to Tomcat developers

2008-10-16 Thread Stephen Caine

Andre,

In regards to contacting IS people (not developers or specialists) who  
use Tomcat in production environments, please contact me off-list.  I  
think I can help to point  you in the right direction and get you  
access to the resources you are requesting.


Thank you,

Stephen Caine
CommonGround Softworks, Inc.
[EMAIL PROTECTED]


In my original post (and I apologise if this was not clear enough),  
I am specifically trying to speak for the sysadmin / average Tomcat  
user, and appealing to experts (such as you probably), to help make  
it simpler for these people to use and configure Tomcat. Please.


I have no doubt that for experts, the logging as it is now is  
probably clear, effective, efficient, flexible and everything you  
would ask for.


log4j is a beautiful package, but it is a monster, requiring deep  
Java knowledge, and even so, many hours of dedicated work to dominate.

From the look of it, Commons Logging is a similar piece of cake.

No doubt that for someone who mainly does Java programming for a  
living, it is worth the effort.
But many (the majority ?) of Tomcat users and administrators do not  
have that time, at least not for that package alone, when they  
simultaneously have to learn a little bit of many other packages.

That does not mean that they don't like Tomcat, at least not yet.

Or else, shall we say up front that Tomcat is a development tool, to  
be used exclusively by Java and Tomcat programming specialists, and  
not in production environments ?





-
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: Preventing File Access

2008-09-10 Thread Stephen Caine

Steve,


Can someone point me to where I can read how to prevent/redirect  
access to a particular file in the Tomcat/webapp context.
Specifically, all of my directories have the OS X DS_Store file.   
I  would like to redirect users to an error page when this file is  
directly accessed.


In the future it would help if you mention what version of Tomcat  
you are using.


version 5.5.7



You will have to use a security constraint,

read these two threads for examples.

http://marc.info/?l=tomcat-user&m=110311676821916&w=2

http://marc.info/?l=tomcat-user&m=98100806313397&w=2


Thank you for the reference.

Stephen Caine
CommonGround Softworks, Inc.

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



Preventing File Access

2008-09-09 Thread Stephen Caine

All,

Can someone point me to where I can read how to prevent/redirect  
access to a particular file in the Tomcat/webapp context.   
Specifically, all of my directories have the OS X DS_Store file.  I  
would like to redirect users to an error page when this file is  
directly accessed.


Thank you,

Stephen Caine
CommonGround Softworks, Inc.

-
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: URL Import Question

2008-04-29 Thread Stephen Caine

Mark,
On Apr 29, 2008, at 2:29 AM, Mark Thomas wrote:


Stephen Caine wrote:
We are using a c:import url tag.  Under most circumstances this  
works just fine, but when it is iterated hundreds of times within  
the same page, it causes the java process to quickly exhaust  
threads.  This is on a 64 bit machine with a 2 gig heap size.  The  
number of thread quickly rise to over 2000.

Try getting a thread dump to see what all those threads are doing.


Will do.  Thank you for the suggestion.

Stephen

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



URL Import Question

2008-04-28 Thread Stephen Caine

All,

This question may not belong here, so let me apologize in advance if  
this is posted inappropriately.


We are using a c:import url tag.  Under most circumstances this works  
just fine, but when it is iterated hundreds of times within the same  
page, it causes the java process to quickly exhaust threads.  This is  
on a 64 bit machine with a 2 gig heap size.  The number of thread  
quickly rise to over 2000.


My question is whether this is a java bug, Tomcat bug or just a  
limitation everyone knows about.


The source as well as the page being imported are complex and fairly  
large.


Thank you,

Stephen Caine
Soft Breeze Systems, LLC

-
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: URL Import Question

2008-04-28 Thread Stephen Caine

Mark,


The correct procedure is to create a new message with a new subject.
This will start a new thread.


Actually, this is what I thought I did.  My sincere apologies.  Would  
it be better for me to start a new thread or should I just let this go?


Stephen

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



URL Import Question

2008-04-28 Thread Stephen Caine

All,

This question may not belong here, so let me apologize in advance if  
this is posted inappropriately.


We are using a c:import url tag.  Under most circumstances this works  
just fine, but when it is iterated hundreds of times within the same  
page, it causes the java process to quickly exhaust threads.  This is  
on a 64 bit machine with a 2 gig heap size.  The number of thread  
quickly rise to over 2000.


My question is whether this is a java bug, Tomcat bug or just a  
limitation everyone knows about.


The source as well as the page being imported are complex and fairly  
large.


Thank you,

Stephen Caine
Soft Breeze Systems, LLC

-
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: Threads

2008-04-03 Thread Stephen Caine

Yong,


Add to here:
export JAVA_OPTS="-d64 -Xms1024m -Xmx1024m -XX:+MaxFDLimit -server - 
Djava.awt.headless=false"


Thank you.

Stephen

-
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: Threads

2008-04-03 Thread Stephen Caine

Chuck,


There are some thread-specific parameters you can play with, in  
particular -Xss.  But as others have pointed out, changing one  
factor moves the limits on others.  Your best bet (assuming you  
really, really need that many threads) is to run in a 64-bit  
process, also as previously suggested.


I posted a response and hopefully I will get some good advice.



increasing the size of the heap (from 1 to 1 gigs).


That's not much of an increase...


True enough.  I meant to say, 1 to 2 gigs (but I bet you knew that).

Stephen

-
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: Threads

2008-04-03 Thread Stephen Caine

Yong,


Are you running on 32-bit or 64-bit JVM on OS X 10.5.2?
If you are running java without -d64, it would be running 32-bit by  
default.


Typicaly around 2000 or so is the thread number limit on 32-bit  
process due to its virtual address space limit (1 thread may claim  
1MB of virtual space for stack). Running java with -d64 will invoke  
64-bit JVM on leopard, and should increase the threads limit  
accordingly.  The actual physical heap space is different story. It  
needs to increase only if you app/thread really use/allocate memory.


But I am wondering why Tiger server did not have the issue. AFAIK,  
64-bit JVM is only available on Leopard.



This is the exact route I was thinking.  We have an XServe running  
10.5, so I want to run in 64 bit mode.  I think I am currently in 32  
bit mode as I have not set any special flag to change the default.  I  
have found the magic flag, -d64, but I do not know where to set this.   
We are using a start up script as follows:


#!/bin/sh
export CATALINA_HOME=$2
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
export JAVA_OPTS="-Xms1024m -Xmx1024m -XX:+MaxFDLimit -server - 
Djava.awt.headless=false"

cd "$CATALINA_HOME"
cd bin
./startup.sh

Where (and how) is the 64 bit flag set?

Thank you for your assistance.

Stephen Caine
Soft Breeze Systems, LLC

-
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: Threads

2008-04-03 Thread Stephen Caine

Chuck,


There's no limit within the JVM itself on the number of threads,  
other than heap space required to hold the Thread objects.  It's the  
underlying OS that imposes the actual limit, including the amount of  
process space available for stacks and other thread-specific  
structures.  If you're not getting an OOME, it's an OS limit that's  
killing the process.


Thank you for the explanation.

I am asking if there is any way to increase the number of threads that  
can be handled by decreasing the thread size allocation (a java  
option) and/or increasing the size of the heap (from 1 to 1 gigs).


Thanks,

Stephen Caine
Soft Breeze Systems, LLC

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



Threads

2008-04-03 Thread Stephen Caine

List members:

I have a process that generates hundreds of threads.  Running on Mac  
OS X 10.5.2 Server, the thread count tops out at approximately 2500.   
After which, the process is terminated.  The heap size is set to 1  
gigabyte.  My question is how to increase the capacity of the JVM to  
handle more threads.  Is the value of 2500 an absolute limit, or can  
it be modified by setting the thread allocation, increasing heap size  
or the use of another java option?


As an aside, this issue did not occur with Mac OS X 10.4 Server.

If you have time, what causes a process to generate threads?

Any advice will be appreciated.

Stephen Caine
Soft Breeze Systems, LLC

-
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 native lib on OS X

2007-11-08 Thread Stephen Caine

Lorenzo,

We use Tomcat on OS X 10.5 and not only does it run great, the  
improvements in memory management (true 64 bit) are impressive.


Stephen Caine
Soft Breeze Systems, LLC


Isn't there anyone who got the native stuff working on a Mac?

I followed all the steps. I compiled the source without any erros.  
The resulting libraries were copied to every place I can possibly  
imagine (/usr/bin, /usr/local/bin, JAVA_HOME dir, CATALINE_HOME dir,  
TOMCAT_HOME dir, CATALINA_HOME/common/lib, CATALINA_HOME/native etc  
etc)
but no matter what, tomcat keeps complaining that it can't find  
them... That sucks. The solver of this problem will be highly  
rewarded with a bag of white rice ;-)


PS: For thos interested, I installed Leopard and tomcat still runs.  
Cool huh?


Thanks
Regards
Lorenzo.

-
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: How to increase Tomcat webserver speed?

2007-10-05 Thread Stephen Caine

Keglius,

Assuming you are using a web browser to display your data, consider  
the HTML used to construct the page.  Regardless of how fast your  
database is, using TABLEs will always be slower than just using PRE  
or BR tags.  While this may not be very pretty, it does result in  
much faster screen draws.  In some browsers, the table does not start  
drawing until the last record is transferred; while on others rows  
begin to appear as soon as the first record is transferred.


The other suggestions, such as using indexes, will certainly help.

From our experience, with sufficient memory and CPU processing  
speed, Tomcat is very fast.


Stephen Caine
Soft Breeze Systems, LLC

-
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 6 Installation Path

2007-09-07 Thread Stephen Caine

All,

We are attempting to install Tomcat 6 on a OS X, but are running into  
a problem.  Our installation path has a space in a file name.  Using  
Tomcat 5, this works just fine, but with Tomcat 6, we receive the  
following error (from the log):


java.lang.NoClassDefFoundError: 3/Tomcat_Qilan//conf/logging/properties
Exception in thread "main" java.lang.NoClassDefFoundError: 3/Tomcat// 
conf/logging/properties
Exception in thread "main" java.lang.NoClassDefFoundError: 3/Tomcat// 
conf/logging/properties
Exception in thread "main" java.lang.NoClassDefFoundError: 3/Tomcat// 
conf/logging/properties

Exception in thread "main"

If the space is removed, the installation works correctly, but we are  
are unable to remove the space due to a large customer base.  The  
space is located in the log output just preceding the number  
'3' (above).


Can anybody offer a suggestion as to why this is occurring and what  
approach we might use to rectify this problem.


Thank you in advance.

Stephen

-
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: SSL port number

2007-08-20 Thread Stephen Caine

Markus,


Stephen Caine wrote:


A simple way to restart Tomcat from a non-root user would be nice.


Interesting wish.  A non-root user with the right to control my  
system services is approximately the last thing I would want to see.


Well, if you can set a 'user' option for startup, why not shutdown?

Stephen

-
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: SSL port number

2007-08-20 Thread Stephen Caine

Well, since you asked...

... or use jsvc which lets Tomcat drop privileges after binding to  
a privileged port and which is distributed with the Tomcat archives.



Did you use it?
did you like it?
We have no reason but the port to give the tomcat-user any  
privilege (even if only at booting); but i'm always interested in  
improving our installations


A simple way to restart Tomcat from a non-root user would be nice.

Stephen


-
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: SSL port number (was: Re: Tomcat SSL/HTTPS Performance vs Apache)

2007-08-20 Thread Stephen Caine

Markus,

I previously posted a question about port redirection which was  
answered.  I was referring to that previous post.


Stephen


We use Tomcat SSL without Apache and it has been very stable.   
The  only issue has been the using port 8443 as some firewalls  
block access.


Why don't you tell Tomcat to use the port you want it to use -  
forexample 443?


-
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 SSL/HTTPS Performance vs Apache

2007-08-20 Thread Stephen Caine

Anthony,

Has anyone done any performance analysis of Tomcat's SSL  
performance, especially compared to Apache.  It is rumored that  
Tomcat is unusable without Apache in front for SSL, but I wonder if  
that is true.


We use Tomcat SSL without Apache and it has been very stable.  The  
only issue has been the using port 8443 as some firewalls block access.


Stephen

-
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: Removing the port identifier

2007-08-15 Thread Stephen Caine

Matthew,

Thank you for your response.  Apart from using iptables (which may or  
may not work in OS X), the Tomcat setup link, "http:// 
tomcat.apache.org/tomcat-6.0-doc/setup.html", seems to be the best  
way to go.


the only way to get rid of the port number is to have something  
listening on :443 (that's the way browsers are, sorry), and then  
hand requests over to tomcat, so to get what you want something  
will have to bind to :443 at some point, requiring root privs. What  
you want is something that will bind to the port as a privileged  
user and subsequently drop priv's to a limited user. the Apache web  
server is excellent for this kind of thing.


The easiest way to do this would be with apache sitting in front of  
tomcat with either mod_jk2 or forwarding requests with mod_rewrite.  
It doesn't really matter where the port forwarder sits, but usually  
you want to align with existing IT infrastructure and use an  
existing internal/internet web server to redirect requests to your  
app. If your company already has apache then this is a cinch,  
otherwise you'll have to figure out how to reverse-proxy with the  
web server du jour...


Is this close to what you're after?


-
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: Removing the port identifier

2007-08-15 Thread Stephen Caine

Hassan,

I appreciate the link.

Stephen


Nope; see the reference to jsvc here:
  


-
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: Removing the port identifier

2007-08-15 Thread Stephen Caine

Chris,

Thank you for the suggestion.  I will investigate.

Stephen


Tomcat does not require you to run it as root in order to use port  
443.

There are various techniques, including using a web server such as
Apache httpd to front Tomcat, iptables (or similar) tricks to re-route
ports, or using jsvc to gain non-root access to port 443 (and others).

- -chris


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



Removing the port identifier

2007-08-14 Thread Stephen Caine
Is there a way to remove the port number from a https request where  
the original url looks something like this:


https://host_name:8443/

The approach to change the server.xml file (where the connector port  
is changed from 8443 to 443) is not practical for us.  When this is  
done, Tomcat requires the root user to run.  We consider this a  
security risk.


We have considered a port forwarder, but we are unclear whether to  
install this on the Tomcat server or router.  In any event, we are  
not at all sure this is the best approach.  Any advice will be  
appreciated.  Our operating system is Mac OS X.


Thanks,

Stephen

-
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 users' list, forum or documentation ?

2007-05-11 Thread Stephen Caine

Sven,



Before your give up with Tomcat


Not at all.  I'm very happily using it with Confluence,  JIRA and  
JForum ... I just have to debug the JForum installation,  but  
that's not a Tomcat problem.


Sorry I misunderstood you.  I wish you luck.

Stephen Caine
CommonGround Softworks, Inc.


-
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 users' list, forum or documentation ?

2007-05-11 Thread Stephen Caine

Sven,


Before your give up with Tomcat, you should try Qilan  
(www.qilan.com).  Qilan is a web development application which  
includes a fully configured version of Tomcat.  Qilan even includes  
simple apple scripts that start/stop Tomcat.  If you want to get into  
configuring Tomcat, that's fine, but you don't have to.  Tomcat is a  
great performer, fast, reliable and stable.  I agree that it's  
internals can be difficult for the user who just wants to create a  
web application, but that's were Qilan comes into play.  Qilan is a  
Mac OS X application.


Stephen Caine
CommonGround Softworks, Inc.


You've hit the nail on the head.  For someone who comes in with a  
Webstar,  Webstar/SSL,  WebCat,  4D,  Phantom,  ListStar,   
PageSentry,  MacAuthorize, and CGI background the TomCat experience  
is quite different and requires a lot of basic assumptions to be  
scrapped.


A lot of what I would have expected to be in end-user TomCat  
documentation is now probably better suited for documentation in  
the "using" application,  like JForum.  I think,  correct me if I'm  
wrong,  that most of the TomCat documentation is out of necessity  
aimed at developers rather than end users as the TomCat  
functionality can not anticipate end-user issues for "using"  
applications ?


Back to trying to get JForum installed,  but not struggling with  
TomCat.


-
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 memory usage.

2007-01-17 Thread Stephen Caine

Ayusman,

I have a OS X server, running Tomcat 5.0.19. There are already  
three applications running but I will need one more application  
which is memory intensive.  I wanted to know how can I specify/ 
increase the memroy requirements for my application or Tomcat  
application?  My new application may need RAM data of around 800MB  
- 1.5 GB; given the condition that the OS X Server Hard Ware is  
capable of providing this amount of memory, how do I claim it at  
Tomcat startup, so that my application goes smoothly.


Additionally is there any known issues in Tomcat while dealing with  
memory intensive applications?

Any inputs will be really helpful.


We use Tomcat 5.5.7 on a Mac Quad Server (4 gigs RAM).  Our default  
settings are:


-Xms200m -Xmx200m -XX:+MaxFDLimit -server -Djava.awt.headless=true

These work fine except when there are a very large number of  
application pages.  In this case we use:


-Xms1048m -Xmx1048m -XX:+MaxFDLimit -server -Djava.awt.headless=true - 
XX:MaxPermSize=256m


At this point in time, you cannot allocate more than 1 gig to the  
heap regardless of whether the machine itself has more RAM.   
Initially we thought this would be a hindrance, however experience  
has shown us that this limitation has minimal impact.


Stephen Caine
Soft Breeze Systems, LLC

-
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: Perm Gen not being released in GC

2006-09-15 Thread Stephen Caine

Darren,

Every now and then JConsole shows Old Gen as having flat-lined.   
Only a Tomcat restart can rectify the problem.  Killing sessions  
followed by a manual GC does not seem to have an effect.


Haven't yet determined whether we need to start looking at the  
young to old heap allocation ratios - is this the main area I  
should be looking into?


We see this same behavior.  I too am interested in comments from  
others.  We are running on a OS X Server; JVM v1.5.


Stephen Caine
Soft Breeze Systems, LLC

-
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: Using Tomcat with JSPs on Mac OS X

2006-09-07 Thread Stephen Caine

Rhodri,

While this does specifically address your question, you might try  
downloading our software, Qilan.  Qilan is designed for OS X.  Our  
installer includes  Tomcat (v5.5.7) and does all the configuration.   
Although we would like for you to try out Qilan, it is not necessary  
for you to run Tomcat with your own webapps.


The download can be obtained at http://cgs.qilan.com:8080/qilan/ 
Qilanv3Download


Stephen Caine
CommonGround Softworks, Inc.


I've recently installed Tomcat 5.0.25 on my Mac OS X (10.4), and  
have used it successfully with servlets (using Java 1.5).  I am  
currently trying to run a simple JSP example, but get the following  
error message:


No Java compiler was found to compile the generated source for the  
JSP.  This can usually be solved by copying manually $JAVA_HOME/lib/ 
tools.jar from the JDK to the common/lib directory of the Tomcat  
server, followed by a Tomcat restart.


Upon searching the web (and my OS) it appears that OS X does not  
include a tools.jar file, as all classes are in the classes.jar  
file. I have tried commenting out the references to the tools.jar  
from the catalina.xml file and the setclasspath.sh file, and have  
even tried renaming a copy of the classes file to tools.jar, and  
putting it in the common/lib directory - all to no avail.


Is there a workaround for this issue? (Incidentally, I found no  
references to OS X or tools.jar on the Apache site).


Thanks in advance for your help,

Rhodri



-
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 Memory Status?

2006-07-23 Thread Stephen Caine

Gamigin

So with: Free memory: 2.17 MB Total memory: 5.84 MB Max memory:  
63.56 MB.  I really have approximately 63.56MB - 5.84MB + 2.17MB =  
59.89MB available which isn't really near tapping the server out.  
Start worrying when Total Memory creeps up near Max Memory.


In addition to the excellent advise others have provided, don't  
overlook Permanent Generational Memory (PermGen).  If you load lot's  
of pages with many classes, you can easily exceed default values.


Stephen Caine
Soft Breeze Systems, LLC

-
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: connection pool

2006-03-30 Thread Stephen Caine

Edward,


Where can I get JDBC driver for Microsoft Access2000?


Try the HXTT driver.  It works very well.

Stephen Caine
CommonGround Softworks, Inc.

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



Directory Permissions

2006-03-01 Thread Stephen Caine

All,

Where would I find information on how to prevent access to specific  
directories within a webapp?  Exactly what file has to be edited?


Akin to how Apache uses .htaccess files, I would like to limit access  
on a user/IP basis.  The files are located within a webapp inside of  
other directories.


Thank you for any advice you can offer.

Stephen Caine
CommonGround Softworks, Inc. 


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



Re: Sad: Tomcat 5.5.x crashes almost every single day.

2006-02-28 Thread Stephen Caine

Tomcat Users:

We also had the dreaded, 'out of memory' errors and periodic crashes  
several times every day.  Currently, we are stable.  With help from  
Chuck, we were able to narrow down our problem to that of  
insufficient permanent generation memory.  The point being that  
figuring out JVM memory requires a bit of homework, testing and  
careful evaluation.  And after a lot of reading, I am only beginning  
to understand how all this stuff works.


Patience and persistence helps.

Stephen Caine
CommonGround Softworks, Inc.

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



How to set a charset

2006-01-07 Thread Stephen Caine

Chuck,

We have tracked down the cause of our encoding problem to an apparent  
bug in the Jakarta Response Tag Library.  Apparently setting the HTTP  
Header Content Type to:


text/html; charset=UTF-8

is parsed as

text/html;charset=UTF-8

The elimination of the space is the killer.  The specification calls  
for the space, and without it, the charset is ignored.  By the way,  
this library has been deprecated, do you know what library has  
replaced its functionality?


Thank you (and others) for your assistance.

Stephen Caine
CommonGround Softworks, Inc.

Re: How to set a charset

2006-01-07 Thread Stephen Caine

Chuck,


My problem is that I need for my browser to display characters  
using  the UTF-8 character set.  In other words, characters such  
as, "é, ü"   are displayed as garbage.


This is a frequent topic in the mailing list; have you checked the  
archives?  Try: http://marc.theaimsgroup.com/?l=tomcat-user&r=1&w=2


Thank you, I will check this out.


In the meantime:

1) What Tomcat level?


Tomcat version 5.5.7


2) Are you using JSPs?  Are they stored in UTF-8 or some other  
character set?


We are using JSP's.  The data is coming from a database and the  
storage format is MacRoman.  The database displays the characters  
correctly.


Stephen Caine
CommonGround Softworks, Inc.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to set a charset

2006-01-07 Thread Stephen Caine
Before I begin, I am trying to create a new topic, not hijacking an  
existing thread.


My problem is that I need for my browser to display characters using  
the UTF-8 character set.  In other words, characters such as, "é, ü"  
are displayed as garbage.


I have tried to edit the web.xml file and adding a CATALINA_OPT, both  
were unsuccessful.  I also tried to add a META tag explicitly naming  
the character set.  All attempts failed.  Can anyone offer another  
suggestion?  Here is what I tried:


(in the start up script)

CATALINA_OPTS=-Dfile.encoding=UTF-8

(in web.xml)

   
contextDefaultEncoding
UTF-8


Thank you,

Stephen Caine
CommonGround Softworks, Inc.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: java.lang.OutOfMemoryError: PermGen space

2005-12-23 Thread Stephen Caine

Chuck,


For starters, I'd try -verbose:gc and perhaps -verbose:class to  
give you a general idea of what's happening when.  There are many  
flavors of profilers out there, a lot of them free.  (Our customers  
tend to go for the premium stuff like Wily Introscope, which  
definitely isn't free, but has lots of bells and whistles - and  
support.)


Thank you and Wade for your suggestions.  I have some reading to do.

Stephen Caine
CommonGround Softworks, Inc.

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



Re: java.lang.OutOfMemoryError: PermGen space

2005-12-22 Thread Stephen Caine

Chuck,

I can only speculate that reducing the size of the NewGen area (due  
to the larger value of NewRatio) forced more frequent collections  
of recently allocated objects, thereby eliminating some class  
object references.  Without knowing a lot more about your  
applications and doing some detailed measurement, that has to be  
taken with a large chunk of salt.


Thank you for your thoughts.  I am using a Quad 4 Mac OS X with a  
1.4.2 JVM.  Any recommendations for testing tools so I can monitor  
memory allocations, garbage collection and the like?


Stephen Caine
CommonGround Softworks, Inc.

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



Re: java.lang.OutOfMemoryError: PermGen space

2005-12-22 Thread Stephen Caine

Chuck,


Sorry, but that's wrong.  It's the ratio between the size reserved  
for newly allocated objects (New Generation) and that used for long- 
lived objects (Tenured or Old Generation)...


I stand corrected.  In either case though, changing the ratio had a  
dramatic effect on our 'out of memory' problems.  Any insights as to  
why?


Stephen Caine
CommonGround Softworks, Inc.

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



Re: java.lang.OutOfMemoryError: PermGen space

2005-12-22 Thread Stephen Caine

Mike,

We are using tomcat 5.5.12 and every couple days the tomcat server  
goes down hard and the last line in the log is:


java.lang.OutOfMemoryError: PermGen space

It appears to only happen if we:
Update jsp pages
Reload Webapp
Deploy Webapp

If we do not do any of the following the server runs great with no  
problems which makes me wonder if it has to do with our application  
or tomcat.  We are planning on restarting tomcat each night for  
now, but we do not want to do that if we shouldnt have to.


This is exactly the problem we kept experiencing, only ours was after  
4 -5 hours of heavy use.  We have a very large webapp with well over  
200 complex pages.  However, we were able to address this by using  
the following configuration:


-server -Xms2048m -Xmx2048m -XX:MaxPermSize=128m -XX:NewRatio=16

We have 3 gigabytes of RAM, but were were still getting out of memory  
errors.  The key setting, "-XX:NewRatio=16" was the trick.  This is  
the ratio allocation between 'perm' and 'eden' memory.  The default  
value is 8.  Raising this value gives more memory to the perm  
memory.  Also note, that raising the MaxPermSize to 128m helped for a  
while, but eventually we got an out of memory error.


We have struggled with correct allocations and continue to tweak our  
settings.  I  hope this is helpful.


Stephen Caine
CommonGround Softworks, Inc.

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



OS X and Tomcat

2005-12-16 Thread Stephen Caine

JT,

I'd love to see some performance benchmarks, or just your  
impression regarding the quad Mac OS X server once you sort our  
your Tomcat/java stuff.


If I could get the Java OPTS correct for memory settings, the results  
would be more meaningful.  My initial impression is that pages come  
up almost instantly - especially for lists.  Joins make lists a bit  
slower, but not by much.  What is very frustrating, is that will all  
that power, I still get out of memory errors.


Any ideas as to how I can use JVM 1.5 rather than 1.4.2?  JVM is  
installed, but no matter what I do, it is not used.


Stephen
CommonGround Softworks, Inc.

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



Adjusting Memory

2005-12-15 Thread Stephen Caine

All,

One of our customers has recently purchased a Quad Processor Mac OS X  
(v10.4 Server) for their Tomcat server.  The machine has 8 gigabytes  
of RAM.  The application they are running is very large and extremely  
complex, containing well over 100 pages.  They are using Tomcat  
v5.5.7.  The JVM is version 1.4.2.


I need a bit of assistance with how to set the Java OPTS so that the  
memory is fully optimized and all processors are used.  I have done  
some reading, but the advice is, honestly, all over the map.  My  
current settings are:


JAVA_OPTS="-Djava.awt.headless=true -XX:+UseParallelGC -Xms512m - 
Xmx2048m -server"


Using Apple's Activity Monitor, the maximum amount of 'real' memory I  
could see was 700 megabytes; while the maximum amount of virtual  
memory was 2.3 gigs.  In fact, once I reached 700 megabytes of 'real'  
memory, the 'out of memory' error was returned.


Thank you in advance.

Stephen Caine
CommonGround Softworks, Inc.

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



Re: New Tomcat install problem

2005-11-20 Thread Stephen Caine

Terry,

Oops, the server address is: http://cgs.qilan.com:8080/qilan/ 
Qilanv3Download


Sorry,

Stephen Caine
CommonGround Softworks, Inc,

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



Re: New Tomcat install problem

2005-11-20 Thread Stephen Caine

Terry,

I've only just subscribed to the list to see if anyone may be able  
to assist with a 'blank page' problem. Research on Google, nor the  
various resources on the web or Tomcat site have assisted, so I  
thought I'd better consult the experts here to see if they can help.


You might want to try downloading Qilan (www.cgs.qilan.com:8080/qilan/ 
Qilanv3Download) and install it.  Everything is put into one  
location, including Tomcat with our webapp.  Run one of the examples  
and see if it loads properly.  This should tell you if the problem is  
with Tomcat or one of the Java support files.  Qilan is our product.


Another thought is to look at the Activity Monitor for the 'java'  
process.  Inspect the process and check for open files and ports.   
This should tell you want has loaded and where it is being referenced.


Good luck,

Stephen Caine
CommonGround Softworks, Inc.

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