Re: Tomcat on Power I

2018-03-19 Thread Greg Vilardi
On Mon, Mar 19, 2018 at 05:39:35PM +0100, Rainer Jung wrote:
> Am 19.03.2018 um 14:24 schrieb Christopher Schultz:
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA256
> > 
> > Danny,
> > 
> > On 3/19/18 5:42 AM, Danny Rodius wrote:
> > > has anyone tried tomcat on Power i systems?
> > 
> > Which OS?
> 
> Probably the OP means System i, aka iSeries, aka AS/400.
> 
> > There is at least one guy here who uses Tomcat on AS/400, but I think
> > he has had better luck with a *NIX OS on the same hardware. I'm not
> > precisely sure how all that works.
> > 
> > Theoretically, if there is a Java Virtual Machine for the
> > OS/architecture, then Tomcat should run on it.
> 
> Regards,
> 
> Rainer

IBM Power systems come in a variety of flavors. The iSeries boxes do run i5OS
(Formerly OS/400), and they ship with an AIX subsystem which provides unix
functionality. IBM also supplies packages for the JVM that can be installed,
and Tomcat runs fine in those environments. We are running the latest 8.0 point
release on our dev servers. I can't comment on any potential issues with newer
releases yet.

If you have a machine with a PowerLinux partition, then it's Linux, and you
should have no difficulties there.

-Greg

-- 
Greg Vilardi   |Technical Lead E-mail:vila...@panix.com
USnail: 354 Indian Head Rd |Vormittag Associates, Inc.   Home:(631)864-1310
Commack, NY 11725  |Ronkonkoma, NY 11779 Cell:(631)627-1448
.sig Version 0.71 I thought, I wrote, I posted.

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



Re: tomcat cache wierd behaviour

2008-04-08 Thread Greg Vilardi
You probably need to update your JVM. There is a bug in the internal 
time handling of the new DST rules here in the USA (at least). THe 
latest Java 5 and Java 6 JVM from Sun have fixed this. I know that the 
issue exists in the build 1.6.0-b105 Sun JVM, and I think that 1.5.0_14-
b103 also exhibits the issue, but I can't down our main development 
server right now to confirm that.

We are not experiencing the symptoms that you are describing, but we 
are seeiong that all of our logging is off by an hour as a result. It's 
certainly worth checking in any case.

Regards,
-Greg


On 8 Apr 2008 at 7:37, loredana loredana wrote:

 winscp is a tool...like windows commander or total commander, . is just
 to view the files in an organized matter. :) i'm sure the problem is not
 winscp :)
 
 - Original Message 
 From: Hassan Schroeder [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Tuesday, April 8, 2008 5:33:44 PM
 Subject: Re: tomcat cache wierd behaviour
 
 On Tue, Apr 8, 2008 at 7:12 AM, loredana loredana
 [EMAIL PROTECTED] wrote:
 
   I run a date command on the server (which is ubuntu) and got Tue
   Apr  8 15:50:01 CEST 2008
 
  Using winscp, I see ...
 
 So it sounds like your problem is with winscp, whatever that is, not
 Tomcat :-)Maybe this is a question for the winscp user list?
 
 -- 
 Hassan Schroeder  [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]
 
 
   __
   __
 You rock. That's why Blockbuster's offering you one month of Blockbuster
 Total Access, No Cost. 
 http://tc.deals.yahoo.com/tc/blockbuster/text5.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]
 


-- 
Gregory H. Vilardi631-752-2701x240 [EMAIL PROTECTED]
Project Manager / Lead Software Engineer   
Recurrent Software Solutions, a division of PES Payroll 
1 Huntington Quadrangle, Suite 1C02, Melville, NY 11747 
Fax: 631-752-3397 
http://www.recurrentsoft.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: What do I do with a heap dump? (OOM Permgen)

2007-11-02 Thread Greg Vilardi
On 2 Nov 2007 at 7:24, Caldarale, Charles R wrote:

  From: Peter Crowther [mailto:[EMAIL PROTECTED] 
  Subject: RE: What do I do with a heap dump? (OOM Permgen)
  
  As far as I know, public enemy #1 for eating PermGen space is 
  still developers using the Singleton pattern in their code 
  and not having listeners to null out the singleton instance 
  when the webapp is undeployed.
 
 Analagous use of ThreadLocal is also a subtle contributor to the
 problem.  The offending references must be cleared at the end of
 processing of each request, since listeners don't have ready access to
 the thread pool.

Thank you for the pointers Peter. We do not have any Singletons in the 
application nor do we use ThreadLocal. However, we do not seem to be 
cleaning up the JDBC classes on redeploy. I'll install the 
SessionListener code that is mentionned in the references in Peter's 
reply. I'm also using the eval version of yourkit now to see what 
exactly is attached to each of the 52 WebAppClassLoaders in the dump.

I'll be back if I get stuck again further down the road. Thank you to 
all of the people who replied for the pointers and the tool 
recommendations. 

-Greg
-- 
Gregory H. Vilardi631-752-2701x240 [EMAIL PROTECTED]
Project Manager / Lead Software Engineer   Fax: (631)752-3397
Recurrent Software Solutions, Inc.   http://www.recurrentsoft.com
1 Huntington Quadrangle, Suite 1C02, Melville, NY 11747 


-
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: What do I do with a heap dump? (OOM Permgen)

2007-11-02 Thread Greg Vilardi
On 1 Nov 2007 at 18:32, Gabe Wong wrote:
 Greg Vilardi wrote:
  Hello everyone. 
 
  My team and I are trying to develop a new web application and the
  tomcat JVM is crashing every few days. We are deploying our separate
  versions of the application several times per hour, and by looking at
 Please elaborate, are you undeploying the same application, then 
 redeploying several times per hour,
 are are you deploying several instances of the same application per
 hour.
 
 I am also assuming these are hot deploys (without shutting down the app
 server)?

Each of us uses our own sandbox directory that is linked into the 
tomcat/webapps directory. We use make for our build management, and run 
'make install' to copy the JSPs and jar files into the webapp 
directory. Since Tomcat is set to dynamically look for new files, we 
don't actually ever undeploy the application directly. Each developer 
rebuilds their web application several times per hour into their own 
sandbox. You assume correctly that weare not shutting down tomcat as 
part of each deployment.

Thanks,
-Greg
-- 
Gregory H. Vilardi631-752-2701x240 [EMAIL PROTECTED]
Project Manager / Lead Software Engineer   Fax: (631)752-3397
Recurrent Software Solutions, Inc.   http://www.recurrentsoft.com
1 Huntington Quadrangle, Suite 1C02, Melville, NY 11747 


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



What do I do with a heap dump? (OOM Permgen)

2007-11-01 Thread Greg Vilardi
Hello everyone. 

My team and I are trying to develop a new web application and the 
tomcat JVM is crashing every few days. We are deploying our separate 
versions of the application several times per hour, and by looking at 
jprobe, I see that each deployment of a webapp consumes 440kb of 
PermGen space. This space does not seem to be released, although I've 
only been monitoring this for 4 hours now. I have a heap dump from the 
last crash, (courtesy of +XXHeapDumpOnOutOfMemoryError) and have taken 
two memory dumps using jmap before and after a redeploy on an otherwise 
quiescent JVM.

Now, having done this, I've also looked at the dumps using jhat. There 
seems to be a vast amount of data there, but I can't distill the 
information I need out of it. I apologize if my Google-Fu is weak, but 
I didn't find much real information on interpreting jhat data. 
Preliminary examination of the jhat data does not show much of my 
application or helper classes (mysql, jdbc).

So, my questions are:
How do I figure out what is in that 440kb per deployment?
Is there an FM for me to R on how to interpret jhat data?
What should I be looking for?
How do I break this problem down further?

The environment is:
OS: Debian etch 2.6.21 kernel
JVM: Sun Java 6 1.6.0-b105 Configured for use with jprobe and default 
memory allocations. (This was done to try to make the problem easier to 
reproduce/study.)
Tomcat: 6.0.14 fronted via Apache 2.2.4 using mod_proxy_ajp.
Database: MySQL 5.0.32 using the latest ConnectorJ.
The application is a combination of JSP and servlets with some AJAX but 
no Comet, Hibernate, c. Apache and Tomcat were hand installed (not 
from Debian packages).

Any help that you can provide would be greatly appreciated.

-Greg
-- 
Gregory H. Vilardi631-752-2701x240 [EMAIL PROTECTED]
Project Manager / Lead Software Engineer   Fax: (631)752-3397
Recurrent Software Solutions, Inc.   http://www.recurrentsoft.com
1 Huntington Quadrangle, Suite 1C02, Melville, NY 11747 


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



JSTL and Tomcat 6.0.10 ConditionalTagSupport class missing?

2007-04-19 Thread Greg Vilardi
I have a problem porting one of my webapps from 5.0.28 to 6.0.10. I've reduced 
the problem to the testcase in this message. Briefly, the following test case 
produces the exception shown below it. The class referenced in the error does 
appear in the old JSTL jar that we are using. However it is absent in the 
tomcat jars, and does not appear in the 1.6.0 JDK, either. Can anyone tell me 
what I'm missing or should be doing to make this work?

Thanks,
-Greg

Example jsp:
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN

html
head
%@ page buffer=50kb
 language=java
%
%@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; %

%
boolean b = true;
%
/head 
body
c:choose
c:when test=%=b%
TRUE
/c:when
c:otherwise
FALSE
/c:otherwise
/c:choose
/body
/html

Exception:

java.lang.NoClassDefFoundError: 
javax/servlet/jsp/jstl/core/ConditionalTagSupport


Exception Type:class java.lang.NoClassDefFoundError
Status Code:500
URI:/ghvp/a.jsp
Request URI:/ghvp/errmsg
Exception:

java.lang.NoClassDefFoundError: 
javax/servlet/jsp/jstl/core/ConditionalTagSupport


Message:

javax/servlet/jsp/jstl/core/ConditionalTagSupport


Stack Trace:

java.lang.NoClassDefFoundError: 
javax/servlet/jsp/jstl/core/ConditionalTagSupport
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at 
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader
.java:1815)
at 
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:87
2)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:13
25)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:12
04)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at 
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader
.java:1815)
at 
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:87
2)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:13
25)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:12
04)
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1221)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1449)
at org.apache.jasper.compiler.Parser.parseBody(Parser.java:1657)
at org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1004)
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1272)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1449)
at org.apache.jasper.compiler.Parser.parse(Parser.java:133)
at 
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:215)
at 
org.apache.jasper.compiler.ParserController.parse(ParserController.java:102)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:2
28)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:1
75)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.jav
a:525)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109
)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
at 

Can the manager app drop sessions on a start?

2005-10-17 Thread Greg Vilardi
I'm running Tomcat 5.0.28 on Linux, for a development platform. After updating 
an application, Tomcat (or possibly the manager app) can't start the 
application if it has sessions pending. One of my co-workers thinks that this 
is a session serialization issue, in that our application keeps lots of non-
serialized objects in the session. (Yes, I know that this is not optimal, but 
it is within our operational parameters for reliability.) I can restart the 
application by undeploying it and then redeploying the directory. 

If the session serialization hypothesis is correct, I'd like to be able to have 
the ability to tell manager to ignore these sessions and just start the 
application. I don't think that the manager has this capability anywhere, since 
I did RTFM, but I'd be delighted to be told that I'm wrong, or if I'm right, 
I'd love to hear some thoughts on how I'd be able to code this myself. I don't 
have thorough enough knowledge of Tomcat's innards to have any idea of where to 
begin my research.

Thanks,
-Greg
-- 
Gregory H. Vilardi631-752-2701x240 [EMAIL PROTECTED]
Project Manager / Lead Software Engineer   Fax: (631)752-3397
Recurrent Software Solutions, Inc.   http://www.recurrentsoft.com
1 Huntington Quadrangle, Suite 1C02, Melville, NY 11747 


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