Howdy,
BTW - Let's say portability here is not my primary goal here.
That's pretty much a conversation stopper for me ;) I'm not interested
in container-specific solutions. Especially ones that are unlikely to
work even in the next major release of this container (i.e. tomcat 5.x).
What
Howdy,
to keep Tomcat as my JSP and servlet container? Because we are using
Oracle
we have in place the Oracle Apache server already. How horrific would
it be
to move files to it?
You mean the Oracle Application Server? Do do you mean an Apache web
server talking to an Oracle database?
You
Howdy,
one file. The container will extract that and build the file system
structures required. There's much less chance for error.
Just one note: the container is not required to do this and may keep
your war file packed. This is one reasons why you should use
ServletContext's
Howdy,
Does your app server need to be available when your DB server is doing
backups? If not, you could always restart the app server at 7am.
Is DBCP or something else doing keep-alive / sanity checks on the DB
connections? Or other keep-alive / ping type activity to the DB server?
If so,
, set in the registry for the JVM for Tomcat
service startup. Is this what you mean?
Iain
Shapira, Yoav [EMAIL PROTECTED]
04/03/2003 01:16 PM
Please respond to Tomcat Users List
To: Tomcat Users List [EMAIL PROTECTED]
cc:
Subject:RE: Tomcat unstable - Dr
Howdy,
FYI, we use a newer version of xerces than what's included with tomcat,
we put it in WEB-INF/lib, and it gets loaded for us. Older, I've never
tried.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday,
Howdy,
The JVM itself (so tomcat as well) can't track memory usage or CPU usage
per webapp as webapp is not a unit of execution in the JVM.
Using a profiler and some load/stress tests, you can profile one
application at a time to discern its resource consumption and behavior
under stress. But
guess I could run Tomcat from the command line, and not as a service,
but I think I've tried this. The same web app crashes in the same way
on
another server running Windows 2000 server. Would Linux be any better?
Iain.
Shapira, Yoav [EMAIL PROTECTED]
04/03/2003 02:20 PM
Please respond to Tomcat
Howdy,
1) TomCat can be installed on a server as standalone (for example at
port
8080) or inside (like a plugin) apache http web server (port 80). Is
there
any major differences between standalone and plugin installation?
Yes, major differences. You have to install the front-end, e.g. apache,
Howdy,
Look for infinite recursion in your code, or an infinite loop with some
variable added to the stack at each iteration.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Jon Wynacht [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 3:12 PM
To: [EMAIL
Howdy,
So you're trying to run tomcat version 4.1.24 with the server.xml file
from tomcat version 4.1.12?
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: HAMILTON, DALE K (SBCSI) [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 3:19 PM
To: '[EMAIL PROTECTED]'
Howdy,
It's good practice.
Your alternative is to enable the invoker servlet, which you can do by
commenting in its servlet-mapping element in
$CATALINA_HOME/conf/web.xml.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: JS [mailto:[EMAIL PROTECTED]
Sent: Thursday,
Howdy,
I usually track the memory consumption of each request using a debug
info
which prints the free memory available.
Runtime r = Runtime.getRuntime();
long freeMem = r.freeMemory();
System.out.println(free memory: + freeMem);
So this tells you the free memory when the request came in.
Howdy,
1. What does the ValidationQuery* parameter actually do in DBCP?
I would assume (too lazy to check) it's a sanity check SQL query
allowing the pool to validate the state of a connection before handing
it to a client or after receiving it back from a client and before
returning it to the
Howdy,
Make sure redirect.jsp is under the docBase of your context. location
is relative to your webapp root.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Louis Lau [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 9:11 PM
To: [EMAIL PROTECTED]
Subject:
Howdy,
Is the JVMPI powerful enough to get used in a memory tracker for tomcat
(I
haven't used it yet)?
Wouldn't it make sense to have a monitoring app for memory and database
connections for Tomcat (i.e. dbcp/poolman functionality + jvmpi in one
admin app)?
From your questions I gather you
Howdy,
Tomcat 5 may have a minimal servlet-only distribution ;) But that's not
for sure. You realize that if you don't have any JSPs, tomcat imposes
no JSP overhead, right?
In addition, compared to other servers I've tried, tomcat by itself
takes very little memory.
Yoav Shapira
Millennium
Howdy,
Is this a windows or a Tomcat issue? It is a practical issue for Tomcat
users - the service is much more convenient.
Given that tomcat works fine when not running as a service, I'd say the
fault is with the service management. I agree with you it's a practical
issue, but then again not
Howdy,
Tomcat has a small footprint. I've successfully run tomcat 4.1.24 in
production with -Xmx32m on a linux machine with 64m total RAM.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: anto paul [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 11:20 PM
To:
Howdy,
Not sure if anyone can help me with this here, but worth a shot.
This sort of thing should be marked as [OFF-TOPIC] in the subject if
you're going to post if to the list at all.
public void init(ServletConfig config) throws ServletException
{
Override the init() method, the
Howdy,
(1) When u say overide the init() method with the version with the
config
parameter, which version is this. public void init(ServletConfig
config)
is the only signiature I can find.
Then you're looking at an old version of the JavaDoc. You should
override
public void init() throws
Howdy,
Coyote is the nickname (as well as the class package name) for the newer
HTTP 1.1 connector used by tomcat. I believe this connector is
available but not the default with tomcat 4.0.6, and is the default
connector in tomcat 4.1.x. It is faster, more robust, and more stable
than the
Howdy,
Quick suggestion: make the header static. ;)
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Vladimer Shioshvili [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 11:33 AM
To: Tomcat Users List
Subject: error-page question...
someone probably has asked
Howdy,
Implement a ServletContextListener. Get whatever attribute you need
from the ServletContext in the listener's contextDestroyed() method.
Don't forget to register your listener in web.xml.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: awc [mailto:[EMAIL
Howdy,
When I netstat on the Tomcat connections, after a heavy load on the
server
and the server is crawling, I get very large number of established
connections, well above the number on my connector's maxProcessors and
acceptCount. How and why does this happen?
First of all, don't mistake
Howdy,
I am on Solaris 8 and have scripted a netstat -an | grep 8009 | grep -c
ESTABLISHED. Weighing total grep -c 8009 vs grep 8009 | grep -c
ESTABLISHED
I'm getting numbers like 847 vs 542. I'm assuming that ESTABLISHED
should
not rise above maxConnections + acceptCount. Most of the other
Howdy,
Out of curiosity: have you tried taking the compiled JSP from tomcat's
work directory and compiling it with javac yourself?
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: HAMILTON, DALE K (SBCSI) [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 12:12 PM
List'
Subject: RE: Tomcat Heap creep
Patches... Great idea, I'm not sure but I will check. I'm using
jdk1.4.1_01, could you give a list of patches or where to go to find
the
list. We just installed a bunch, but I would like to make sure.
Thanks.
-Original Message-
From: Shapira, Yoav
Howdy,
Search the archives: this has been brought up before.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Dominic Parry [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 9:48 AM
To: Tomcat Users List
Subject: Admin Tool
Hi
I've noticed something funny about
Howdy,
I had similar issues with getResourceAsStream which caused me to go
another
route. I now use:
new File(getServletContext().getRealPath(modules.xml)) to read files
in.
Just remember if you deploy in a packed war file the above will NPE
every time.
Yoav Shapira
This e-mail, including
Howdy,
When I load my-config.xml using
Classloader.getResourceAsStream(my-config.xml) everything works
great.
However, when I make a change to that file and again call
Classloader.getResourceAsStream(my-config.xml) the changes are not
picked
up and the same initial resource is returned. How do I
Howdy,
Listeners are a servlet specification 2.3 feature, so you wouldn't find
them in the DTD version 2.2.
Your XML listener element is correct and sufficient to register a
listener in a servlet specification 2.3 container, like tomcat 4.x. The
listener class must be available to tomcat: the
Howdy,
Please note your approach will fail when running from a packed .war
file, as the new File(..) will throw an exception. This might be OK for
your environment, but is important to keep in mind for portability.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From:
Howdy,
My web.xml starts with
?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
Do I need to change anything there?
Change it to a 2.3 DTD. You can copy and paste from
Howdy,
Dang it! I knew it was too good to be true. Well, it works just fine
for
me.
I do not deal with WARs. Anywyas, why would anyone want to run from a
packed WAR anyways (instead of unpacked)? I'm not being sarcastic. I
am
just trying to think of an instance where it makes sense.
Two cases
Howdy,
Seeing your comment made me think twice, and then test it out... And I
was wrong! The code below works even in a packed .war it seems.
(Tomcat 4.1.24, JDK 1.4.1, Solaris 8, autoDeploy=false,
unpackWARS=false, test.war attached). Sorry about that -- my mistake.
Yoav Shapira
Millennium
Howdy,
I get the error SEVERE: Exception starting filter Set Character
Encoding
java.lang.ClassNotFoundException: filters.SetCharacterEncodingFilter
when
I start tomcat (see below).
Do you have this class anywhere in your distribution?
I loaded Java 2 SDK 1.4 (port for aix from ibm website)
Howdy,
There is one deployment descriptor per web application. This deployment
descriptor is web.xml.
Struts lets you define many sub applications or application flows
(which translate into struts controller servlets) in every web
application.
The question is whether these application flows
Howdy,
could not get my data, the key is good, but the serializable object (it
was a String) become a [Ljava.lang.String; and I can't transtype it as
java.lang.String and I can't get the previous string...
Of course you can't cast it as a String -- [Ljava.lang.String; is a
serialized String
Howdy,
I got the same: JRockit 8.1 on Linux not just crashes frequently with
our (very large, very thread intensive, many concurrent users)
application, but uses a ton more memory as well.
But to each their own: this is great. In the .NOT world, you wouldn't
have this JVM choice...
Yoav
Howdy,
The server.xml is not part of the .war file. Its contents do not move
along magically.
If you depend on environment entries in your web.xml, you will always
need the server configuration modified to supply those environment
entries to your web application. This is true when moving from
,
Arnaud
Messages d´origine
De: Shapira, Yoav [EMAIL PROTECTED]
Date: Vendredi 6 Juin 2003 14:13
Objet: RE: one web.xml for many web apps
Howdy,
There is one deployment descriptor per web application. This
deploymentdescriptor is web.xml.
Struts lets you define many sub applications
Howdy,
Consider using a Filter as follows:
public void doFilter(...) {
if(request instanceof HttpServletRequest) {
HttpSession theSession = ((HttpServletRequest)
request).getSession();
if(theSession.getAttribute(dmSession) == null) {
// Redirect to login page, print out error
Howdy,
Seems like a JK connector issue. I personally can't help much there ;(
- onehundred.txt is the thread dump when tomcat is at 100% cpu. NOTE
that
no applications are running inside Tomcat.
Umm, it does seem like there are all the standard apps (ROOT, admin,
manager, examples,
Howdy,
The error is from your iText package. Look in its documentation or post your question
on their mailing list for better chance at a meaningful response.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Ing. Omar Rojas Gastélum [mailto:[EMAIL PROTECTED]
Sent:
Howdy,
I'm so tired of typing this explanation ;(
Your error is not a ClassNotFoundException. It's a
NoClassDefFoundError. They are different. It happens because you have
multiple copies of servlet.jar in your classpath. One of this copies,
likely the one /usr/java1.2, is old.
Your
, David (CHR) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 12:16 PM
To: 'Tomcat Users List'
Subject: RE: Is servlet chaining possible using Tomcat
what is servlet chaining?
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 11:40 AM
To: Tomcat
Howdy,
It's dangerous to stick class objects in a session object as attributes,
precisely for these serializable type problems.
The transient approach should be fine. I would skip the checking if its
null or not in every accessor method. The static initialization is
still reliable for
Howdy,
Where did you install the JavaMail jar?
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Mark Irvine LCGI [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 1:44 PM
To: [EMAIL PROTECTED]
Subject: SendMailServlet
Hi,
I recently installed Tomcat 4.1.24 along
Howdy,
The NoClassDefFoundError is the java file not found error. It's case
sensitive.
This is rapidly climbing up the charts as the most misunderstood Java
error.
NoClassDefFoundError is not the same as ClassNotFoundException.
NoClassDefFoundError does NOT typically indicate a file not found.
Howdy,
Has anyone been seeing
java.io.CharConversionException: isHexDigit
at org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:124)
at org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:87)
at
org.apache.tomcat.util.http.Parameters.processParameters(Parameters.java
:408)
?
Howdy,
Don't you have an access log? For tomcat or apache, if you use JK
Coyote connector? In case of GET method you can locate the offending
request...
I do have an access log, in the combined pattern. These access logs are
very large, however, as I get thousands of requests per hour on
: Tuesday, May 27, 2003 3:07 PM
To: 'Tomcat Users List'
Subject: RE: SendMailServlet
Hi,
The JavaMail was installed in a folder called javamail-1.3 in the C
drive. The CLASSPATH was updated appropiately.
Mark
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 27 May 2003
Howdy,
Is your bean in a package?
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Shannon Scott [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 3:08 PM
To: Tomcat Users List
Subject: 4.0.4 to 4.1.24 Upgrade problems
Hello,
I tried to upgrade to the latest and
List
Subject: Re: 4.0.4 to 4.1.24 Upgrade problems
Hello,
No.
Does it have to be?
Thank You Much.
Shannon
- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 3:09 PM
Subject: RE: 4.0.4 to 4.1.24 Upgrade problems
Howdy,
Many thanks for your reply. This did change the error message to:
ENCOUNTERED EXCEPTION: java.lang.NoClassDefFoundError:
javax/mail/Session
java.lang.NoClassDefFoundError: javax/mail/Session
Ah, now we're getting somewhere. You have multiple copies of the
JavaMail API of different
Howdy,
No timestamping is bad... is increasing the debug level of the
connector
an option for you?
I suppose I could try that. Heopfully the exception will come up again
after I do.
My wild guess is that there could be a mismatch between the request
declared (or assumed by tomcat/defined in
Howdy,
Dude -- I got the exact same thing yesterday and posted it! ;) Still
looking for the answer.
I don't think it's a rare browser: 100% of my hits are from either IE5.5
or IE6 on Windows 2000 (this is a closed intranet environment).
Yoav Shapira
Millennium ChemInformatics
-Original
Howdy,
I agree with under WEB-INF as that's a directory the servlet container
will protect for you.
I don't like to put configuration information on the classpath however.
I prefer to access them via other mechanisms, such as the
ServletContext. So I would create a directory called config under
Howdy,
Thanks for posting the update.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: joseph lam [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 10:18 PM
To: Tomcat Users List
Subject: Re: tomcat 4.1.18/24 unstable (UPDATE)
I just found out what caused the
Howdy,
Good options all. I was leaning towards /WEB-INF/. I like Yoav's
suggestion for the more pure organizational aspect. However, could one
also just:
InputStream is = ServletContext.getResourceAsStream(
/WEB-INF/a.props); ?
One could, sure. And if you have a small system / few files,
environments are very rarely closed - in our company we are only
provided with our own in-house modified version of IE6 - but we work in
IT
and Telecoms, so Netscape, Opera, etc can be found all over the place -
because we can :)
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL
Howdy,
How about starting with the binaries? Download tomcat 4.1.24 binary
from here:
http://jakarta.apache.org/site/binindex.cgi
Then just unpack it (make sure to use GNU tar to untar if you download
the .tar.gz distribution) and you're ready to go.
Worry about building from source only if
Howdy,
I haven't seen your problem personally, so I can't help much, but I'm curious: how do
you know tomcat is recompiling the included page every time?
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Jan Pekník [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 28, 2002
Howdy,
We actually hold the configuration in a bean-like class. We have a
configurator utility class that exposes a couple of configure methods:
one that takes a ServletContext, another an InitialContext, another a
filesystem path to config directory. So we can (and do, in production)
use the
in or something ??
well anyway i did try to startup a binary but how do i change the
default
port ?
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 29, 2003 12:11 AM
To: Tomcat Users List
Subject: RE: tomcat install
Howdy,
How about starting
-doc/jk2/jk2/vhosthowto.html
whats the jk2 shared library about thats why i tried the source instead
is it a module ?
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 29, 2003 12:11 AM
To: Tomcat Users List
Subject: RE: tomcat install
Howdy,
How about
Howdy,
That's unfortunate ;( I've had tough issues that appeared to be random
(like your network traffic hypothesis) and were very difficult to debug
;(
I've tried many many containers / app servers, and always come back to
tomcat. This was even before I started contributing to tomcat's
Howdy,
So you would make your webapp container-specific?
If you wait for tomcat5, you can do this via JMX ;)
If you want to do it with tomcat4, search the archives: I answered this
question and gave a code example (getting the Server, then the Hosts,
etc.),
about a month ago. It should be in
Howdy,
GC behavior is not tomcat-specific. It's the JVM that's doing the GC,
and if you have a stop-the-world full GC algorithm triggered, then
everything in the JVM will stop. Again, not related to tomcat. Bad GC
tuning will bite you on every server.
Yoav Shapira
Millennium ChemInformatics
Howdy,
UserBean needs to be in a package. See
http://tomcatfaq.sourceforge.net/classnotfound.html
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: David Reche Martinez [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 12:12 PM
To: [EMAIL PROTECTED]
Subject:
Howdy,
User agents aren't 100% reliable and I think I remember something about
Opera identifying itself as IE by default at one stage. Often when
you're using an
alternative browser you come across a site that insists on using IE so
you
change your user agent so you can use the site but forget
Howdy,
You can, and it's encouraged. The app development guide has details and
an example:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Mark Irvine LCGI [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May
: Determining JVM stability
Yoav,
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 10:06 AM
Howdy,
If the JVM crashes due to its own internal fault, it produces two
things
on Solaris:
1. A core file with a traditional core dump... Google
Howdy,
The permissions depend on the tomcat user's umask. Change that and
you'll be all set.
Another alternative, since you've already bother to package and deploy a
.war file, is to keep it packaged. Use the resource APIs instead of the
Filesystem ones.
Yoav Shapira
Millennium
Howdy,
This should be in the FAQ: I'm sure Senor Funk will add it to
tomcatfaq.sourceforge.net soon enough. The question has been answered
in the archives several times.
Right now, tomcat needs the JDK in order to compile JSPs into bytecode.
If you don't use JSPs or precompile them, you can get
Howdy,
couldn't you set up an error-page that only runs for this exception and
then
print out the parameters from that page? Or does the request not get
that
far? If not write a valve/responseWrapper that catches response 500
errors
and act upon it.
It doesn't get that far.
Shouldn't your
Howdy,
One is from the line actually throwing the exception, one is the root
cause for the exception, i.e. why that line is throwing the exception.
You don't always get two stack traces: for example, an NPE will only
give you one.
Yoav Shapira
Millennium ChemInformatics
-Original
was not necessary and now is mandatory?
- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 6:27 PM
Subject: RE: Tomcat/Java compiler error
Howdy,
UserBean needs to be in a package. See
http://tomcatfaq.sourceforge.net
Howdy,
It always seems it's me mentioning the old-school emacs ;) I love that
editor. I'm more productive in it than any other one. That said,
Eclipse with the emacs key bindings is a great alternative ;)
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Jan Behrens
Howdy,
Just comment it in server.xml. It's commented out by default.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Tyndall, David [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 29, 2003 10:40 AM
To: '[EMAIL PROTECTED]'
Subject: Access Log Valve
Ok I have TOMCAT
(was Re: Access Log Valve)
Shapira, Yoav wrote:
Howdy,
Just comment it in server.xml. It's commented out by default.
Question about some of those things commented out...the reference to a
CoyoteConnector as a Connector element is also commented out in the
server.xml I have - and I tried un
Howdy,
I have a page that uses a sendRedirect. There is a bunch of logic
at
the top of the page, but really nothing much is being sent to the user.
Nothing much is more than enough to commit the response, thereby
making a sendRedirect invalid.
Yoav Shapira
This e-mail, including any
Howdy,
See also the User Web Applications section here:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Geralyn M Hollerman [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 29, 2003 11:32 AM
To: Tomcat Users
Howdy,
Is there any reason why Tomcat 4.1.12 and 4.1.18 (on Solaris 8, Sun
E450
Dual 400MHz 1GB RAM) requires about 10-15 second delay after the
startup.sh
script is executed before it can process requests. We have observed
the
same situation on other boxes.
snip
Shouldn't startup.sh return
that there
are a
couple of IIS traversal worms that send something like this.
Otherwise,
check the access logs for both a query-string and a '%' char.
If all else fails, a variant on Charlie's suggestion that prints
request.getQueryString() should also work.
Shapira, Yoav [EMAIL PROTECTED] wrote
Howdy,
Please don't use this list for advertising.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Vic Cekvenich [mailto:[EMAIL PROTECTED]
Sent: Friday, May 30, 2003 11:22 AM
To: [EMAIL PROTECTED]
Subject: Advanced Struts best practices web cast training by winner of
Howdy,
Just be very careful with ThreadLocal -- it's inherently evil and easy
to misuse.
Consider the PooledExecutor from Doug Lea's util-concurrent package
(which will become java.util.concurrent in J2SE 1.5, Doug Lea's the spec
lead for JSR 166) as an alternative:
Howdy,
Do you have any code in the common/lib or common/classes repository that
these two contexts share? Is the File destination for log4j's
FileAppender configured to be the same for the two contexts?
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Angelov, Rossen
and ConversionPattern
are
the same.
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, May 30, 2003 12:19 PM
To: Tomcat Users List
Subject: RE: Is this normal for Tomcat?
Howdy,
How is log4j writing to a file if you're not using
FileAppender?
Yoav Shapira
Millennium
Howdy,
The drivers don't do
that, and closing a connection doesn't really have
anything to do with it (in fact a pool would NOT close
an unused connection.)
That's not necessarily true. Most connection pools are
smart enough to close resources associated with a logical
connection (as well as a
Howdy,
It's surprising that you think tomcat uses green threads and you don't
know what the HotSpot VM is ;) I don't think I've ever seen that
combination before.
Do java -version and you'll see that you already have the HotSpot VM.
JDK 1.4.1 works on the Intel platforms you want.
Unless
Howdy,
CLASSPATH=/var/tomcat4/common/lib/servlet.jar
This should work. (In addition to any other jar your apps might need).
The LE vs. full version has nothing to do with it: they are essentially
the same with respect to compiling and running servlets and JSPs.
Yoav Shapira
Millennium
Howdy,
It's not often you see someone post a deprecated
solution to this list ;) Be careful using this page
with non-default encodings.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: bedetrob [mailto:[EMAIL PROTECTED]
Sent: Friday, May 30, 2003 8:35 AM
To: Tomcat
Howdy,
*) If you have 128 MB heap and 64 MB stack memory assigned, against
which
will the memory consumption count?
Mostly the heap. The stack space is used for method overhead and other
miscellaneous information.
*) According to my experiements Runtime.availableMemory will give me
the
heap
Howdy,
i think it is because i've got a redhat 9.0 which
uses new kinds of threads( NPTL ).
Compatibility problems...
That's a good theory. I'd be interesting to learn your experience and
opinion regarding this new threading library. If it gives the JVM
grief, that's not good ;(
Yoav Shapira
Howdy,
You can enable the -verbose:gc switch and see how often GC is occurring.
Incremental GC will occur all the time pretty much.
Note that your core problem may be deeper. Why did memory consumption
hit 600MB? Is that expected? If so, you should ensure the heap has
more allocated than what
Howdy,
Techniacally,my post should only and only goes to tomcat-user mail
server
How did you arrive at that conclusion? See RFC 3461, 3030.
Yoav Shapira
This e-mail, including any attachments, is a confidential business communication, and
may contain information that is confidential,
Howdy,
Perhaps the JSP's content type is not specified correctly?
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Beau Hebert [mailto:[EMAIL PROTECTED]
Sent: Monday, June 02, 2003 10:49 AM
To: 'Tomcat Users List'
Subject: JSP HREF Prompts to Download
Hi-
I have a
Howdy,
I question whether this is a memory issue. Even if you use 600MB, why
does
tomcat run at 100% cpu forever??? Shouldn't the gc finish???
GC may finish and immediately restart if memory is still full. That
would keep CPU usage pegged.
I have had this same problem with Tomcat for quite
1201 - 1300 of 5223 matches
Mail list logo