Andrew Miehs wrote:
Hi Nicolas,
Tomcat works best with large hardware. I have found that using a Sun
Enterprise 15K with 1 processor per online user gives me the best
performance.
Don't forget the 1GB of RAM per user... That combination would giive
terrific performance ;-)
Regards
Pid wrote:
David Kerber wrote:
Pid wrote:
here's another obvious question:
if you're in a servlet, and you're getting an separated string from
somewhere, where is the somewhere that you're getting it from?
does the servlet activate and collection the data somehow, or does the
data
Peter Crowther wrote:
From: David Kerber [mailto:[EMAIL PROTECTED]
Do you think
it be more efficient to scan the string once and grab the
field values as I get to each field marker?
Yes.
Yes, the machine is cpu-bound.
My 768k data line will spike the cpu to 100% and hold
I have a couple of questions about the performance of my code, but I'm
going to ask them in separate threads.
The first one is, if I have this loop:
for ( ii = 0; ii data.length; ii++ ) {
where data is defined as byte[] , is the .length property evaluated each
time through the loop,
By the way, this code is in a servlet running under 5.5.12, if it matters.
David Kerber wrote:
I have a couple of questions about the performance of my code, but I'm
going to ask them in separate threads.
The first one is, if I have this loop:
for ( ii = 0; ii data.length; ii
, David Kerber [EMAIL PROTECTED] wrote:
I have a couple of questions about the performance of my code, but I'm
going to ask them in separate threads.
The first one is, if I have this loop:
for ( ii = 0; ii data.length; ii++ ) {
where data is defined as byte[] , is the .length property
the point of what you are suggesting?
Dave
Peter Crowther wrote:
From: David Kerber [mailto:[EMAIL PROTECTED]
It is
executed for over 2 million data lines per day, so this routine is
executed over 10 million times per day.
[snippet of code that parses the line each time elided]
Opinion
tokenize it into string pairs, store the
pairs and works with them?
leon
On 8/7/06, David Kerber [EMAIL PROTECTED] wrote:
This code is part of a servlet running in TC 5.5.12, jre ver 1.5.0.6.
I use this code to break out individual data fields from a line which is
structured as a=1b=2c
Peter Crowther wrote:
From: David Kerber [mailto:[EMAIL PROTECTED]
Is there a more efficient split method I could use? Or am I
completely missing the point of what you are suggesting?
I think you've slightly missed the point. I assume you're calling your function 5 times, each
the query string)?
The data is sent via an HTTP POST request, with the query string lightly
encrypted.
Peter Crowther wrote:
From: David Kerber [mailto:[EMAIL PROTECTED]
Is there a more efficient split method I could use? Or am I
completely missing the point of what you
Where are you getting the parameter from? Is it going to change a lot?
I store parameters in the server.xml in the GlobalNamingResources
section as Environment entries, and then retrieve them with a call to
this routine:
public static String getEnvironmentVariable( String envVarName,
A dialup modem usually works well for this!
Michael Partheil wrote:
Hi!
I'm looking for a way to locally simulate a slow network connection
with Apache Tomcat 5.5.9 running on Mac OS X 10.4.6 and Java 1.4.2.
I need this to test how my web application works for users with slow
internet
I think what he's getting at is that Tomcat (or any other web server)
cannot tell how a browser is set wrt cookies without trying to set one
and then seeing if it's there.
Garey Mills wrote:
Martin -
I guess I'm being obtuse, but WHAT won't work? What I want to know
is how Tomcat
or not? And when does Tomcat
try? Before control is passed to my app?
Garey Mills
Library Systems Office
UC Berkeley
The brain is not where you think
On Wed, 21 Jun 2006, David Kerber wrote:
I think what he's getting at is that Tomcat (or any other web server)
cannot tell how a browser is set wrt
assumption correct, I don't
know. That is what I am asking.
Garey Mills
Library Systems Office
UC Berkeley
The brain is not where you think
On Wed, 21 Jun 2006, David Kerber wrote:
Why would it try until your app tells it to? AFAIK (admittedly, not
very far; I don't use cookies
Terry Orechia wrote:
Is it possible to import a large file greater than 3 gigabytes to a tomcat web server? I am running tomcat 4.1 on debian with Tomcat/Apache JK2 Connector . I upload a file using multipart/form data on http Post request to servlet. I have successfully uploaded a file
[EMAIL PROTECTED] wrote:
When I compile my jsp and java files, I get 9 warnings from the jsp file.
It appears not to recognize the html tags ie unknown tag (html:cancel).
What have I done wrong? Here is the login.jsp file.
%@ taglib uri=/WEB-INF/struts-bean prefix=bean %
%@ taglib
,
Try placing the file extension on your URI of your taglib tag.
On 6/13/06, David Kerber [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
When I compile my jsp and java files, I get 9 warnings from the jsp
file.
It appears not to recognize the html tags ie unknown tag (html:cancel).
What
I can't answer the why, but it's been that way for a long time. I
just d/l both installations, install the windows .exe version, and then
unzip the .zip version on top of the windows installation. A bit more
time consuming, but gets my windows services installed and still gives
me the
I had a leak of that kind when I wasn't closing inputstream and
outputstream objects. It's one thing to check anyway.
Petkov, Rossen wrote:
...
Using a profiler, doesn't seem to help me much. I can see the memory
being used by certain classes go up (mainly char[] and byte[] and some
Dynamically-defined mail servers work fine in Tomcat; I'd be in deep
kimshe if they didn't. Here are some excerpts from the code I use:
Properties props = new Properties();
props.put( mail.smtp.host, however you get the
server name );
Session
Sounds to me like your database is timing out the connection. See if
you can extend the timeout so it won't drop it during an overnight lull.
james edwards wrote:
No, different machines. But, it works all day and works right after a
restart of tomcat.
j
On 4/28/06, ALEX HYDE [EMAIL
It kind of sounds like your connection to the database is timing out.
Does this happen after the tomcat instance in question has been idle for
an extended time?
james edwards wrote:
We are running separate tomcat and apache servers, the http requests are
being proxied from the apache
Does your ISP allow you to run a server? Mine blocks pretty much all
incoming requests.
Jonathan Pare wrote:
Any of you have an idea why I can't access my websites from outside my home ?
Thanks.
From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Access server from outside
Some ISP's (not all!) will make exceptions for non-commercial,
low-volume personal web sites if you ask nicely. You have nothing to
lose by explaining what you want to do, and asking them to allow a
single port in to your system.
Dave
.
Jonathan Pare wrote:
I contacted my ISP and they are
Or you could pay for a business line, which would allow servers. Of
course it will cost more...
Jonathan Pare wrote:
I contacted my ISP and they are blocking the port 80. They also forbid to run any type of server FTP, HTTP, IRC, MP3, PROXY, SMTP, POP or other. So basicaly, that mean that I
If you keep the data transfer volume low, they probably won't notice...
Jonathan Pare wrote:
Yeah but in my area, I don't have that much choices ! Plus, I have I package deal with that ISP (IP phone + log distance call + television + internet).
Maybe I'll try the other port suggestion and see
If you took all the defaults, as it says in that document, Tomcat is on
8080, not 80. So try:
http://localhost:8080
[EMAIL PROTECTED] wrote:
Sorry guys about my reply to another thread, I didn't realize.
I'm new at this so...
I only installed tomcat following this guide:
Can somebody tell me what the difference is between a full GC and a
regular GC? Here's an excerpt from my jakarta-service log, when I
have the verbose gc option set. You can see that the total memory used
drops hugely. I was intentionally letting my app continue to run to see
what would
Reis, Tom wrote:
I was wondering what version of the java sdk I should use with tomcat
5.0.27. I am currently using sdk 1.4.1_04b05 and it seems that Tomcat
goes down once a day. I was wondering if sdk 1.4.1.11 might run better.
Thanks.
I'd go all the way to the latest 1.4.2.x
I run into the same thing, with my mail sent from a java class: if the
mail.jar and activation.jar are in the shared/lib directory, it won't
pick them up, but in web-inf/lib it will.
Dave
Amar wrote:
Hi,
I am trying to use shared directory for mail api. But when i keep these
jar files (
Steve Ochani wrote:
On 31 Mar 2006 at 19:34, Jay wrote:
I am pretty new to tomcat. I recently read a post
http://marc.theaimsgroup.com/?l=tomcat-userm=114372017420869w=2
which solved a problem I have been having for tomcat 5.5 also. I
thank that person for posting the solution. I also
Ok, thanks. After re-reading this thread again, I had just figured that
out and was going to post a Never mind message, but you beat me to it...
Filip Hanik - Dev Lists wrote:
what you are missing is
the complete file name being .war
ie, only a suffix, no actual file name
Filip
David
I'm planning on trying, but considering how much trouble I have just
getting my own apps to work properly, I don't know how much luck I'll
have working with other people's code ;-)
Parsons Technical Services wrote:
Write a patch and submit it.
- Original Message - From: David
already written
2. It already works
3. It has log rotation (either size-based, or interval based)
4. It has customizable appenders to output the information you want, in the
format you want
...
Tim
-Original Message-
From: David Kerber [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 30
and configs, or don't supply any at all in your application and
use the jar and configs from common/lib.
-Original Message-
From: David Kerber [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 30, 2006 8:42 AM
To: Tomcat Users List
Subject: Re: Daily log rotation?
Can I use
-
From: David Kerber [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 30, 2006 8:42 AM
To: Tomcat Users List
Subject: Re: Daily log rotation?
Can I use it for the Tomcat standard logs without changing my applications?
I want to rotate the stdout_, jakarta_service_, etc logs. I've already got
I don't know javascript hardly at all, but would it work to write a
little script and use an onClose event to trigger a logout request?
Victor Hugo Germano wrote:
it should be good for me...
ty for the explain peter...
:-)
Peter Crowther escreveu:
From: Victor Hugo Germano [mailto:[EMAIL
Peter Crowther wrote:
From: David Kerber [mailto:[EMAIL PROTECTED]
I don't know javascript hardly at all, but would it work to write a
little script and use an onClose event to trigger a logout request?
Yes, unless the browser crashes, the user disconnects from the internet
before
Is there any way of getting Tomcat to start its standard logs
(stdout_mmdd, jakarta_service_mmdd, etc) new each day, rather
than continuing to append to the log which was started days ago when I
last restarted the Tomcat service?
Thanks!
Dave
Boy, log rotation sure seems like it would be a reasonable function to
have built into tomcat's native logging...
Tim Lucia wrote:
Use Log4J, or another logger implementation of your choosing, with a
RollingDailyFileAppender (Log4J) or equivalent (your choosing) as the
target.
It's in the jakarta_service_mmdd.log file, in your tomcat logs
directory.
Turbett, Tim wrote:
I'm running Tomcat as a windows service. I want to study what's going
on with the JVM memory. I add the -verbose:gc Java option, and start
Tomcat.
What directory and file contains the GC
-2000 mini computer), but the only formal programming
course I've had was Fortran in college, and I've never taken any
computer science or programming theory courses.
Asegid Debebe wrote:
Do you have any suggestion, David?
Thanks,
On 3/27/06, David Kerber [EMAIL PROTECTED] wrote:
Waited
If I'm not using the apache HTTPD in front of tomcat, do I need the ajp
connector activated in the server.xml?
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Thanks.
Allistair Crossley wrote:
no
-Original Message-
From: David Kerber [mailto:[EMAIL PROTECTED]
Sent: 24 March 2006 15:43
To: Tomcat Users List
Subject: AJP connector required?
If I'm not using the apache HTTPD in front of tomcat, do I need the ajp
connector activated
the
shortucut to
If I have the time I will post a feature request on bugzilla...
Will definitively post my step-by-step procedure tomorrow
Nic
On 22/03/06, David Kerber [EMAIL PROTECTED] wrote:
Jim the Standing Bear wrote:
Hi,
Is there a way to run two instances of tomcat 5.5 on the same
Leon Rosenberg wrote:
On 3/20/06, David Kerber [EMAIL PROTECTED] wrote:
I have a situation where my java-Tomcat application will be writing
lines of data one at a time (but quickly and lots of them, eventually
approx 2 million lines per day, though only about 500k right now) to a
disk
Caldarale, Charles R wrote:
From: David Kerber [mailto:[EMAIL PROTECTED]
Subject: Re: [OT] How does Synchronized code interact with
other applications
Ok. So if I were to port the Delphi app to java and run it
as another thread in my app, I would be ok there...
Not necessarily. You
I know Ascii value isn't quite the correct term, but it's the only one
I could come up with.
What Im trying to come up with is the simplest way of coming up with the
numeric value associated with a given character, and to go back the
other direction as well. In VB, these are the ASC() and
Thanks!
Artur Rataj wrote:
char is a numeric type. You might try this code as an example:
char c = 32;
c += '@';
if(c 31) System.out.println(c + = + (int)c);
The exception is it adds to strings as a character, thus the cast is needed.
Regards,
Artur
)'A';
will result in i=65, the ASCII value for A. char is a numeric type
remember, so you don't really have to cast to int, I just did it that
way to better illustrate what was happening.
To go the other way, it's just:
int i = 65;
char c = (char)i;
That assumes i127.
Frank
David Kerber wrote:
I
the code above, I'm just typing it as I speak.
HTH
Nic
On 19/03/06, David Kerber [EMAIL PROTECTED] wrote:
I know Ascii value isn't quite the correct term, but it's the only one
I could come up with.
What Im trying to come up with is the simplest way of coming up with the
numeric value associated
It's not company advertising. Look at the return address: it's a US
government (military) email server, and requires it to be noted when
information is unclassified. It's probably added automatically by the
server.
Mladen Turk wrote:
Samara, Fadi N Mr ACSIM/ASPEX wrote:
Classification:
Are there any adjustments I can do to my Axis settings to reduce the
bandwidth usage on my SOAP requests? In particular, I would like to
know how I can get rid of the
xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; items in the
argument elements. I'm using the minimum call
My stuff is 90% java and jsp, with only a few static resources. Where
should I put them in the Tomcat structure? Do they go under the
appropriate spot in /webapps?
Filip Hanik - Dev Lists wrote:
the setup can be trivial, if you pair one apache to one tomcat, and
use mod_proxy.
you should
Thanks!
Caldarale, Charles R wrote:
From: David Kerber [mailto:[EMAIL PROTECTED]
Subject: Re: how can I run normal web sites using Tomcat?
My stuff is 90% java and jsp, with only a few static
resources. Where should I put them in the Tomcat
structure? Do they go under the appropriate
My previous java IDE was UltraEdit (a text editor), and batch files for
compilation and deployment. I tried both NetBeans and Eclipse, and
actually liked NetBeans a bit better, but not enough better to overcome
the appeal of a rapidly-evolving open-source solution like Eclipse,
which other
Basically, I'd like to know if a filter can be used to change a context
path, or are they restricted to acting within a given context?
For example, can I set up a filter at a higher level, so that it will
trigger even on a context that doesn't exist in the current Tomcat instance?
Thanks!
correct the
path or forward the request to the correct context. I've been told I
can do this with Apache HTTPD, but didn't want to have to install that
just to get this bit of added functionality.
Does that sound doable?
Dave
Peter Crowther wrote:
From: David Kerber [mailto:[EMAIL PROTECTED
You're welcome. That tradeoff between security and usability is a
decision only you and your users can make, but I like to have the option
to make that tradeoff if necessary.
Dave
Buddy wu wrote:
2006/3/7, David Kerber [EMAIL PROTECTED]:
Context caseSensitive=false
thanks a lot
Context caseSensitive=false
Buddy wu wrote:
2006/3/7, Long [EMAIL PROTECTED]:
Buddy wu wrote:
I wan't to know there is any way to set tomcat NOT CASE SENSITIVE in URL
I mean: when I write in browser's 'http://localhost/test.html'
equals to 'http://localhost/TEST.htm'. Can I do it
with this (jsp code disclosure!)!!
David Kerber a écrit :
Context caseSensitive=false
Buddy wu wrote:
2006/3/7, Long [EMAIL PROTECTED]:
Buddy wu wrote:
I wan't to know there is any way to set tomcat NOT CASE
SENSITIVE in URL
I mean: when I write in browser's 'http
?
David Delbecq wrote:
I suspect a call to /something.JSP will not go thru the jsp engine.
I can also guess that calls the security constraints applied on /servlet
will not apply on /SERVLET
David Kerber a écrit :
I've seen that notice, but could you explain to me how that works? I
don't
else
then file loading.
David Kerber a écrit :
If it works that way (and I haven't tried it), then I would say that
the caseSensitive=false flag was not working as I would expect. I
would expect that things defined for /MYNAME would work for /myname if
caseSensitive was false.
Can anybody tell
checks.
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
Read this too
http://marc.theaimsgroup.com/?l=tomcat-userm=114002237714355w=2
(David Kerber started this one.)
-Original Message-
From: David Delbecq [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 07, 2006 9:04 AM
to *.jsp (and not *.JSP).
Thus, someone can see the internal workings of your jsp and make 'better'
hacking attempts. Is there something else about security you are concerned
with?
-Original Message-
From: David Kerber [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 07, 2006 9:35 AM
Peter Crowther wrote:
From: David Kerber [mailto:[EMAIL PROTECTED]
Ok, I see that, and it's kind of scary! That seems like a
pretty poor
design for the compiler not to handle that kind of change.
It ain't the compiler - the JSP compiler never gets invoked because the
mapping is case
I thought it was .../shared/lib... ?
Alex Jalali wrote:
You would have to add those to the ../WEB-INF/lib/
In this case for javax.mail.* you would need to downlaod the java mail API
and put the mail.jar under that folder. Any package that you place in that
folder will be added to your
Nobody has any suggestions on this? I still can't get it to go.
Thnaks!
Dave
David Kerber wrote:
I read the thread from last week about case-sensitivity, and did some
additional googling when it didn't work, but still can't get my Tomcat
5.5.12 on Win2k, running with Java 1.5.0_06
with no luck.
Are you sure it works in 5.5.12? A couple of the posts I've seen while
googling have implied that the last version this worked in was 5.5.9.
That would really suck if correct! If it matters, I'm running jdk 1.5.0_06.
David Kerber wrote:
Nobody has any suggestions on this? I
Ok, thanks. Obviously I'm missing something, then. I'll keep digging...
Bob Faist wrote:
I'm using Tomcat 5.5.14 and jdk 1.5.0_06.
-Original Message-
From: David Kerber [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 15, 2006 9:44 AM
To: Tomcat Users List
Subject: Re: Can't
With the trouble I've been having with getting caseSensitive=false to
work in my app, I got to wondering if it really does what I think it
does on Windows XP.
My interpretation of the doc description is that when
caseSensitive=:false, I should be able to have a document root and
context path
, but at the moment I don't give a rat's a** about
them; I just want my context path to be non-case sensitive.
Mark Thomas wrote:
David Kerber wrote:
With the trouble I've been having with getting caseSensitive=false to
work in my app, I got to wondering if it really does what I think it
does
I run tomcat 5.5.12 as a service on Win2K (not 2k3), but don't know what
mode it is in. How do I find that?
Sebastian Himberger wrote:
Hi,
a week ago i posted a question regarding my problem installing Tomcat
as a windows service. Before i'll try again to get it work it would be
nice if
Is there any way of trapping session timeouts, so I can log them? I am
logging when a user logs in and when they explicitly log out, but would
like to log when their session times out, if that is possible.
TIA!
Dave
-
To
()
{
return getClass().getName() + # + hashCode();
}
}
-Original Message-
From: David Kerber [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 09, 2006 9:38 AM
To: Tomcat Users List
Subject: Logging session timeouts
Is there any way of trapping session timeouts, so I
;
}
/**
* Return string representation of this object
* @return a String representation of this object
*/
public String toString()
{
return getClass().getName() + # + hashCode();
}
}
-Original Message-
From: David Kerber [mailto:[EMAIL PROTECTED]
Sent
+hoursStr+:+minutesStr+:+secondsStr+.+millisecondsStr);
}
}
-Original Message-
From: David Kerber [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 09, 2006 9:56 AM
To: Tomcat Users List
Subject: Re: Logging session timeouts
I got your code in, and it compiles, but I don't
-
From: David Kerber [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 09, 2006 10:56 AM
To: Tomcat Users List
Subject: Re: Logging session timeouts
I got your code in, and it compiles, but I don't understand how I configure
the url-mapping you refer to. Could you point me to some docs
goes
inactive, the session will expire, and the listener will catch it and log
it)
-Original Message-
From: David Kerber [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 09, 2006 11:09 AM
To: Tomcat Users List
Subject: Re: Logging session timeouts
That got me going; thanks!
One more
. (If a user goes
inactive, the session will expire, and the listener will catch it and log
it)
-Original Message-
From: David Kerber [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 09, 2006 11:09 AM
To: Tomcat Users List
Subject: Re: Logging session timeouts
That got me going; thanks!
One
and destroyed exactly once.
-Original Message-
From: David Kerber [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 09, 2006 12:16 PM
To: Tomcat Users List
Subject: Re: Logging session timeouts
I still have a question about performance: any idea which of these
methods (filter
Merico Raffaele wrote:
Dear Community
I am developing a web application based on Tomcat 5.5. and on Cocoon 2.1.8.
I am doing all the work on a Windows XP platform. Now, somehow, I have seen
filenames are not treated case-sensitive. In order to change this behaviour
on Tomcat level I added the
Tim Funk wrote:
Sweet sweet flame fodder. Tomcat is as alive as the community of
developers that are willing to work on it (like any open source project).
I guess you could consider it flame fuel, but it's also a legitimate
question, IMO. Your answer below looks good to me.
Tomcat did
Tim Funk wrote:
Apache is a legal entity which is composed of many developers who work
on a variety of software projects in a variety of programming
languages. Some projects are related to one another, others are not.
Apache != httpd. httpd was the first Apache project.
True, but the HTTP
Roel De Nijs wrote:
or they think coffee and/or island :-)
[EMAIL PROTECTED] 2/02/2006 16:50:03
True, but the HTTP server is still what most people think of when they
hear the name Apache.
Probably same people, that think of Applets or Javascript when they
hear the word
Christian Stalp wrote:
Remy Maucherat wrote:
It's deprecated because it is confusing, but it is actually very
useful performance wise in some cases, since it does pooling. I will
make sure this feature remains available in the future.
That means, I still can use it?! Deprecated is not
Ours is more of a small-to-medium environment than it is enterprise, but
we put antivirus on our servers...
Tim Funk wrote:
Interesting. In enterprise environments, I also hear it common to see
antivirus software also run on windows servers too. (Yes, you read
that correctly) I'd be curious
Mikolaj Rydzewski wrote:
Kirk Gray wrote:
This e-mail is intended only for the personal and confidential use of
the recipient(s) named above. It may include Blackboard confidential
and proprietary information, and is not for redistribution.
I wonder if you'll bue sued because this email is
John MccLain wrote:
we currently have 1 project in tomcat webapps dir. We want to add another
project there. The problemn is that we would like to have both projects'
web-inf/lib populated with the same set of libraries (jar files). When we
kick off Tomcat with this configuration,The second
901 - 990 of 990 matches
Mail list logo