Re: BOOBIES!

2006-07-25 Thread Alex Turner

Quite frankly, I sympathize with the original poster.  This list is very
unresponsive quite often, and I would never recommentd tomcat to a
commercial company because the mailing list support is terrible.  Heck, I've
even called commercial support vendors  for tomcat who have not returned my
phone calls.  The tomcat community needs to do a better job of helping
users, or they can watch users go over to BEA Weblogic and Websphere.  I
know I'm considering it as soon as I can afford a BEA or Websphere license.
When someone has to put 'BOOBIES' in the subject to get attention that
speaks of a wider problem than someone being insensitive.

Alex.

On 7/25/06, Dakota Jack <[EMAIL PROTECTED]> wrote:


What can be gained is a measure of civility.  I don't think someone who
deliberately does something offensive to achieve their own ends is in a
position to say when their behavior is properly handled.  Some people just
have a hard time putting themselves into the position of others, or don't
care whom they offend.  You would be, I would think, the very last person
in
the world to adjudicate when this topic is finished.  However, you might
have noticed that it was finished before you came back.

On 7/24/06, Harris, Thomas <[EMAIL PROTECTED]> wrote:
>
>
> I sent the original message, with an appropriate subject, over two weeks
> before the plea for attention follow-up with the very offensive subject.
> The original subject was "Shared code but different pages on different
> virtual hosts?" We're on a really tight schedule, and having waited two
> weeks for any answer was no longer something we could do, so my boss
> actually suggested getting a little attention on the message via this
> silly stunt.
>
> So, I did get some help on the topic in question, and lots more besides,
> It's was quite fun actually, reading some of the silliness that this one
> word has spawned. Someone mentioned the Superbowl of 2004, and I concur.
>
> Let's put this to rest... What can be gained by continuing on and on
> about how horribly offensive this subject line is.
>
> Tom
>
> -Original Message-
> From: Januski, Ken [mailto:[EMAIL PROTECTED]
> Sent: Sunday, July 23, 2006 8:26 AM
> To: Tomcat Users List; Tomcat Users List
> Subject: RE: BOOBIES!
>
> Like many I've resisted this thread because I figured it would be
> STUPID! STUPID, YES I SAID STUPID. Did that get your attention?
>
> Now let me ask: how many people read threads here whose subject is in
> caps followed by an explanation point? And what does that subject
> usually say? Something like HELP, TOMCAT DONT WORK, a type of spam or
> something similar. I almost always skip those messages. Some people have
> more patience than I and so do end up helping someone who has gotten
> desperate. More experienced users know that they're much more likely to
> get an answer to their question by choosing a more informative and less
> excited subject.
>
> So what does someone think when they see BOOBIES! and what did the
> author of that message think that they would think? Well I have little
> doubt that they expected anyone to think of birds and I doubt that that
> was the first reaction of any reader no matter how avid a birder. So I
> have a very hard time believing that the author had any intent other
> than to get a reaction of some sort from readers who saw the subject and
> didn't think bird. I don't think this has anything to do with puritanism
> or political correctness. I can't think of anything I like much less
> than political correctness. But it's very hard to see this as having
> anything to do with political correctness. To me it's just someone
> trying to be clever and then trying to cover their tracks when they find
> out that many uses don't actually find it clever. ENOUGH SAID!
>
>
>
>
> -Original Message-
> From: Robert Koberg [mailto:[EMAIL PROTECTED]
> Sent: Sun 7/23/2006 7:28 AM
> To: Tomcat Users List
> Subject: Re: BOOBIES!
>
> Wow... how do some people make it through the day without exploding from
> some terrible insult.
>
> I can't believe this thread subject has turned into such a big deal. I
> deleted the first 5 or so because I thought it was spam. Then I saw
> names responding which I recognized.
>
> I really don't understand how someone can be offended by a word like
> 'boobies' and can still use the Internet, or real life for that matter.
>
> grow up and grow a skin... Dantes Inferno invoked for using the word
> 'boobies.' The road to hell is paved with...
>
>
>
> Dakota Jack wrote:
> > Golly, Charles,
> >
> > Maybe you need some training?  Maybe you are the one who does not get
> the
> > point?  If you think I am going to apologize for your taking a serious
>
> > topic
> > that hurts people and covering it with your inane indifference, you
> > might be
> > wrong.  The worst people are not the haters, although they are bad
> enough,
> > the worst people are the indifferent.  If you read Dantes Inferno you
> will
> > find the colder the heart, t

Re: URGENT HELP NEEDED: mod_jk loadbalancing issues

2006-07-09 Thread Alex Turner

What is your load average under these circumstance?

Is each of the 10 tomcats on a seperate physical machine?

What are your max thread settings in Tomcat?

Are your tomcat machines CPU bound or I/O bound under full load?

Alex

On 7/9/06, Edmon Begoli <[EMAIL PROTECTED]> wrote:


Hi,

First of all - thanks Rainer for willing to look into this issue.

Environment description:

Web Server: Apache 2.0.52
mod_jk: 1.2.15
OS: RedHat ES 4.2
App. Server: Tomcat 5.5.15

Cluster topology: 4 webservers with mod_jk doing sticky loadbalancing into
10 tomcats

MOD_JK Configuration: Pretty much basic mod_jk and Tomcat settings for
AJP13

Description of the issue:

Under very heavy loads for our standards (about thousand of concurrent
users)
we start seeing errors (listed at end botton of this e-mail) in the mod_jk
error log.

Our concern is mod_jk behavior on the web server. We closely monitor
apache
and Apache itself is not under heavy stress. However, shortly after we
start
seeing these messages in the mod_jk's error log, web server becomes
unresponsive
and we have to re-start it.

While the web server server is unresponsive we monitor 8009 port - nothing
is going on it.

We monitor Tomcats and they are fine.

As soon as we re-start web servers traffic resumes. Then under heavy loads
things break again

We are planning on increasing the number of max threads on the Tomcats'
AJP connector to imrpove the throughput of the Tomcats.

However, our concern is with the web server side lock ups. It seems that
mod_jk cannot
recover after this oversaturation.


TAIL -F FROM THE MOD_JK LOG RIGHT BEFORE  IT "DIES"
__


[Fri Jul 07 09:59:43 2006] [info]  ajp_service::jk_ajp_common.c (1721):
Receiving from tomcat failed, recoverable operation attempt=0

[Fri Jul 07 09:59:43 2006] [info]  ajp_service::jk_ajp_common.c (1749):
Sending request to tomcat failed,  recoverable operation attempt=1

[Fri Jul 07 09:59:44 2006] [error]
ajp_connection_tcp_get_message::jk_ajp_common.c (961): Can't receive the
response message from tomcat, network problems or tomcat is down (:8009), err=-110

[Fri Jul 07 09:59:44 2006] [error] ajp_get_reply::jk_ajp_common.c (1503):
Tomcat is down or refused connection. No response has been sent to the
client (yet)

[Fri Jul 07 09:59:44 2006] [info]  ajp_service::jk_ajp_common.c (1721):
Receiving from tomcat failed, recoverable operation attempt=0

[Fri Jul 07 09:59:44 2006] [info]  ajp_service::jk_ajp_common.c (1749):
Sending request to tomcat failed,  recoverable operation attempt=1

[Fri Jul 07 09:59:44 2006] [error]
ajp_connection_tcp_get_message::jk_ajp_common.c (961): Can't receive the
response message from tomcat, network problems or tomcat is down (:8009), err=-110

[Fri Jul 07 09:59:44 2006] [error] ajp_get_reply::jk_ajp_common.c (1503):
Tomcat is down or refused connection. No response has been sent to the
client (yet)

[Fri Jul 07 09:59:44 2006] [info]  ajp_service::jk_ajp_common.c (1721):
Receiving from tomcat failed, recoverable operation attempt=0

[Fri Jul 07 09:59:44 2006] [info]  ajp_service::jk_ajp_common.c (1749):
Sending request to tomcat failed,  recoverable operation attempt=1

[Fri Jul 07 09:59:44 2006] [error]
ajp_connection_tcp_get_message::jk_ajp_common.c (961): Can't receive the
response message from tomcat, network problems or tomcat is down (:8009), err=-110

[Fri Jul 07 09:59:44 2006] [error] ajp_get_reply::jk_ajp_common.c (1503):
Tomcat is down or refused connection. No response has been sent to the
client (yet)

[Fri Jul 07 09:59:44 2006] [info]  ajp_service::jk_ajp_common.c (1721):
Receiving from tomcat failed, recoverable operation attempt=0

[Fri Jul 07 09:59:44 2006] [info]  ajp_service::jk_ajp_common.c (1749):
Sending request to tomcat failed,  recoverable operation attempt=1

[Fri Jul 07 09:59:45 2006] [error]
ajp_connection_tcp_get_message::jk_ajp_common.c (961): Can't receive the
response message from tomcat, network problems or tomcat is down (:8009), err=-110

[Fri Jul 07 09:59:45 2006] [error] ajp_get_reply::jk_ajp_common.c (1503):
Tomcat is down or refused connection. No response has been sent to the
client (yet)

[Fri Jul 07 09:59:45 2006] [info]  ajp_service::jk_ajp_common.c (1721):
Receiving from tomcat failed, recoverable operation attempt=0

[Fri Jul 07 09:59:45 2006] [info]  ajp_service::jk_ajp_common.c (1749):
Sending request to tomcat failed,  recoverable operation attempt=1

[Fri Jul 07 09:59:46 2006] [error]
ajp_connection_tcp_get_message::jk_ajp_common.c (961): Can't receive the
response message from tomcat, network problems or tomcat is down (:8009), err=-110

[Fri Jul 07 09:59:46 2006] [error] ajp_get_reply::jk_ajp_common.c (1503):
Tomcat is down or refused connection. No response has been sent to the
client (yet)

[Fri Jul 07 09:59:46 2006] [info]  ajp_service::jk_ajp_common.c (1721):
Receiving from tomcat failed, recoverable operation attempt=0

[Fri Jul 07 09:59:46 2006] [info]  ajp_service::jk_ajp_common

Re: Is it possible to configure Tomcat in a way that it uses different CPUs for different parallel requests?

2006-07-04 Thread Alex Turner

This is the default behaviour.

Alex

On 7/4/06, KHZ (SAW) <[EMAIL PROTECTED]> wrote:


Hi world.

Are there Tomcat settings for achieving such a behaviour?

Regards,   Karl-Heinz.





Re: Tomcat's scalability

2006-06-21 Thread Alex Turner

This discussion focuses primarily on serving static files to a client, not
processing dynamic web pages.  Most people running tomcat are processing
dynamic pages, like getting data from a database and compositing a page
based on that data.

An FTP site, or a static web site will typically be I/O bound or Network
bound, and the only way to increase throughput it to increase the number of
I/Os per second that your server can manage or increase the size of your
network interface.  A java based dynamic website is typically not I/O bound,
but CPU bound, which posses a different set of challenges than a static FTP
server.

Alex.

On 6/21/06, Andrew Miehs <[EMAIL PROTECTED]> wrote:


Now that we are moving to the theoretical discussion, you will
probably want to have a look at

http://www.kegel.com/c10k.html

Regards

Andrew


On 21/06/2006, at 4:56 PM, Mladen Adamovic wrote:

> I spoke recently with guy from Microsoft (project manager from
> server division).
> He said that heavily loaded web server don't lose much time to
> switch processes but when you are out of free memory and server
> start to swap, performances degrade dramatically.
> I though that guy definitely knew what he was thought about.
>
> Lets see what operating system has to do when switch threads.
> Just to move all registers to/from memory? Anything else?


-
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's scalability

2006-06-20 Thread Alex Turner

Please see
http://java.sun.com/developer/technicalArticles/Programming/linux/
Java on linux has been natively multithreaded since 1.3

Please also note that having a max threads of 750 is pretty much gaurtenteed
to cause your system to grind to a halt under high load.  (Most linux
systems I've seen buckle somewhere around a load average of 75 or so, which
means 75 threads waiting for CPU time).

Bear in mind that if your application is CPU bound, then no more than the
number of CPUs you have can exucte threads at once, which on most systems is
either 2 or 4 CPUs, so just 2 or 4 threads!!  If you have some IO, and there
is always some waiting on the OS to deliver network packets, so it's worth
queing threads up a bit, but doing much more than 3 or 4 times the number of
CPUs you have is only going to cause your system to spend more time in
context switches, not in actual work time.  Setting maxThreads to 750 is
downright irresponsible.

A number less than 32 is probably more than your system will ever be able to
cope with if you are actualy doing any processing during the course of a
request and not just serving static content.  (there are some background
threads for various things like garbage collection in the JVM and in tomcat,
so a few extra are also warranted).  If in doubt, go low, and if you aren't
getting CPU saturation under high load, tune them up.

It's usefull to do 30 seconds of googling to find Suns actual statement
prior to posting and demostrating that 'AFAIK' is pretty lame, because you
didn't bother to take the time to actualy find out.

Alex.

On 6/20/06, Mladen Adamovic <[EMAIL PROTECTED]> wrote:


Leon Rosenberg wrote:
>> Isn't Tomcat and JVM still single threaded?
>> Single thread = single processor usage
> I don't think it was ever singlethreaded. And if it were, what would
> the Connector setting
> in the server.xml mean?
>  maxThreads="750" minSpareThreads="25" maxSpareThreads="75"
>
Max number of Java thread, IMHO.
Java thread is not the same as operating system thread.
In fact, JVM used to be single threaded on Linux and Windows and I'm not
quite sure has it changed recently.
So, you might have 800 Java threads but it is still one thread on
operating system.
When you run "ps aux | grep java" you always see one operating system
thread IMHO.
It means you don't exploit 4 processors if you have 4.
To exploit 4 processors you have to setup 4 JVM (4 tomcat instances) to
do round robin.
As long as you have 1 JVM active you don't exploit thread level
parallelism in operating system.

AFAIK

--
Mladen Adamovic
http://www.online-utility.org  http://www.shortopedia.com
http://www.froola.com  http://www.gift-idea4u.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: Tomcat's scalability

2006-06-19 Thread Alex Turner

On 6/19/06, Leon Rosenberg <[EMAIL PROTECTED]> wrote:


On 6/19/06, Biernatowski Bartosz J <[EMAIL PROTECTED]> wrote:
> I am about 90% sure the bottleneck is Tomcat or what's running on top of
> Tomcat. Application uses JDBC queries to MS SQL server
> Chips are Intel Xeon. My monitoring data:
> Memory utilization under 30%, CPU under 10%. Using hardcore performance
> tools and systematic approach.
> The bottom line is that Tomcat/my application combo don't seem to handle
> more than a certain number of users. All I want to do is to up the # of
> users by 3.

Sounds like your db connection pool is the problem. Maybe you should
check whether you have enough connections in the connection pool.



Connection pooling, ahh yes.  This is also a likely problem if you aren't
doing any.




> So far it sounds that the approach of adding separate instance of Tomcat
and
> using round robin is better than adding a separate JVM.
I think both options are equal. How do you plan to run a separate
tomcat in the same JVM?



Both options are equaly stupid.  Putting multiple intances of tomcat on a
single box is pretty worthless unless you have serious application
problems.  Tomcat is multi-threaded, and will by nature utilize a multi-CPU
setup.


If you ask me (and hey, we have thousands of concurrent users and a

lot more requests) you need a monitoring tool for your application
inside your application not just vmstat or top. You need to know which
servlet/action/whatever your presentation layer is takes the time and
trace it down in the persistence. Everything else is just kindergarten
:-)


>
>
> BJ Biernatowski
> Application Developer, e-Business

Leon

>
> -Original Message-
> From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 19, 2006 10:49 AM
> To: Tomcat Users List
> Subject: Re: Tomcat's scalability
>
> are you sure that tomcat is your bottleneck?
> Your 4 CPU machine (which cpu's btw?) should be able to handle more
> than 1000 users (unless you are speaking about suns cpu) without
> problems. Maybe you should provide more info about your application.
> Do you have any monitoring data?
>
> Leon
>
> On 6/19/06, Biernatowski Bartosz J <[EMAIL PROTECTED]>
wrote:
> > Hello,
> > I was hoping somebody on the list might point me in the right
direction...
> >
> > I am trying to scale up Tomcat based web application currently
supporting
> > ~100 users to 350 users.
> >
> > It seems that I have enough hardware: 2 load balanced servers x 4 CPUs
> each
> > with 4 GB of RAM which is underutilized for most of the time even
though
> > application performance slows dramatically at peak times.
> >
> > I was advised to install multiple JVMs in order to improve Tomcat's
> > performance. Another option I considered was to install 2 instances
> > of Tomcat on each server to see whether it would handle increased
load.
> >
> > Would anybody know what kind of performance improvement would multiple
> > JVM/Tomcat installations provide? Are there any benchmarks available?
> >
> > Thank you for any help!
> > BJ
> >
> > BJ Biernatowski
> > Application Developer
> >
> > This e-mail, including attachments, may include confidential and/or
> proprietary information, and may be used only by the person or entity to
> which it is addressed. If the reader of this e-mail is not the intended
> recipient or his or her authorized agent, the reader is hereby notified
that
> any dissemination, distribution or copying of this e-mail, including its
> contents and attachments, is prohibited. If you have received this
e-mail in
> error, please notify the sender by a "reply to sender only" message and
> delete this e-mail immediately and destroy all electronic and hard
copies of
> the communication, including attachments.
> >
> >
> > -
> > 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]
>
>
> This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified that
any dissemination, distribution or copying of this e-mail, including its
contents and attachments, is prohibited. If you have received this e-mail in
error, please notify the sender by a "reply to sender only" message and
delete this e-mail immediately and destroy all electronic and hard copies of
the communication, including attachments.
>
>
> -
> To start a new topic, e-mail: users@tomcat.apac

Re: Tomcat's scalability

2006-06-19 Thread Alex Turner

You've also totally failed to include numbers for I/O (don't forget, it's
not necessarily MB/sec that counts, it's requests/sec) and for Network
usage, and also for the perfomance pattern of the SQL Server system, which
is considerably more likely to be the bottleneck than the app seeing that
most people don't properly understand how to configure a database server.

Alex

On 6/19/06, Biernatowski Bartosz J <[EMAIL PROTECTED]> wrote:


I am about 90% sure the bottleneck is Tomcat or what's running on top of
Tomcat. Application uses JDBC queries to MS SQL server
Chips are Intel Xeon. My monitoring data:
Memory utilization under 30%, CPU under 10%. Using hardcore performance
tools and systematic approach.
The bottom line is that Tomcat/my application combo don't seem to handle
more than a certain number of users. All I want to do is to up the # of
users by 3.

So far it sounds that the approach of adding separate instance of Tomcat
and
using round robin is better than adding a separate JVM.


BJ Biernatowski
Application Developer, e-Business

-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Sent: Monday, June 19, 2006 10:49 AM
To: Tomcat Users List
Subject: Re: Tomcat's scalability

are you sure that tomcat is your bottleneck?
Your 4 CPU machine (which cpu's btw?) should be able to handle more
than 1000 users (unless you are speaking about suns cpu) without
problems. Maybe you should provide more info about your application.
Do you have any monitoring data?

Leon

On 6/19/06, Biernatowski Bartosz J <[EMAIL PROTECTED]> wrote:
> Hello,
> I was hoping somebody on the list might point me in the right
direction...
>
> I am trying to scale up Tomcat based web application currently
supporting
> ~100 users to 350 users.
>
> It seems that I have enough hardware: 2 load balanced servers x 4 CPUs
each
> with 4 GB of RAM which is underutilized for most of the time even though
> application performance slows dramatically at peak times.
>
> I was advised to install multiple JVMs in order to improve Tomcat's
> performance. Another option I considered was to install 2 instances
> of Tomcat on each server to see whether it would handle increased load.
>
> Would anybody know what kind of performance improvement would multiple
> JVM/Tomcat installations provide? Are there any benchmarks available?
>
> Thank you for any help!
> BJ
>
> BJ Biernatowski
> Application Developer
>
> This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that
any dissemination, distribution or copying of this e-mail, including its
contents and attachments, is prohibited. If you have received this e-mail
in
error, please notify the sender by a "reply to sender only" message and
delete this e-mail immediately and destroy all electronic and hard copies
of
the communication, including attachments.
>
>
> -
> 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]


This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified that
any dissemination, distribution or copying of this e-mail, including its
contents and attachments, is prohibited. If you have received this e-mail in
error, please notify the sender by a "reply to sender only" message and
delete this e-mail immediately and destroy all electronic and hard copies of
the communication, including attachments.


-
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's scalability

2006-06-19 Thread Alex Turner

Given that you aren't CPU bound, it's highly unlikely the problem is tomcat.

Alex.

On 6/19/06, Biernatowski Bartosz J <[EMAIL PROTECTED]> wrote:


I am about 90% sure the bottleneck is Tomcat or what's running on top of
Tomcat. Application uses JDBC queries to MS SQL server
Chips are Intel Xeon. My monitoring data:
Memory utilization under 30%, CPU under 10%. Using hardcore performance
tools and systematic approach.
The bottom line is that Tomcat/my application combo don't seem to handle
more than a certain number of users. All I want to do is to up the # of
users by 3.

So far it sounds that the approach of adding separate instance of Tomcat
and
using round robin is better than adding a separate JVM.


BJ Biernatowski
Application Developer, e-Business

-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Sent: Monday, June 19, 2006 10:49 AM
To: Tomcat Users List
Subject: Re: Tomcat's scalability

are you sure that tomcat is your bottleneck?
Your 4 CPU machine (which cpu's btw?) should be able to handle more
than 1000 users (unless you are speaking about suns cpu) without
problems. Maybe you should provide more info about your application.
Do you have any monitoring data?

Leon

On 6/19/06, Biernatowski Bartosz J <[EMAIL PROTECTED]> wrote:
> Hello,
> I was hoping somebody on the list might point me in the right
direction...
>
> I am trying to scale up Tomcat based web application currently
supporting
> ~100 users to 350 users.
>
> It seems that I have enough hardware: 2 load balanced servers x 4 CPUs
each
> with 4 GB of RAM which is underutilized for most of the time even though
> application performance slows dramatically at peak times.
>
> I was advised to install multiple JVMs in order to improve Tomcat's
> performance. Another option I considered was to install 2 instances
> of Tomcat on each server to see whether it would handle increased load.
>
> Would anybody know what kind of performance improvement would multiple
> JVM/Tomcat installations provide? Are there any benchmarks available?
>
> Thank you for any help!
> BJ
>
> BJ Biernatowski
> Application Developer
>
> This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that
any dissemination, distribution or copying of this e-mail, including its
contents and attachments, is prohibited. If you have received this e-mail
in
error, please notify the sender by a "reply to sender only" message and
delete this e-mail immediately and destroy all electronic and hard copies
of
the communication, including attachments.
>
>
> -
> 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]


This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified that
any dissemination, distribution or copying of this e-mail, including its
contents and attachments, is prohibited. If you have received this e-mail in
error, please notify the sender by a "reply to sender only" message and
delete this e-mail immediately and destroy all electronic and hard copies of
the communication, including attachments.


-
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: Problem with tag library calling

2006-06-13 Thread Alex Turner

This is still an issue - I'm trying to get a client to live... This syntax
error really doesn't help me actualy fix the problem

Please help somebody... This is a disaster right now.

Alex.

On 6/12/06, Alex Turner <[EMAIL PROTECTED]> wrote:


It looks like it's generating the following function:

  private boolean _jspx_meth_mp_dynselect_0(PageContext
_jspx_page_context)
  throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
//  mp:dynselect
com.mintpixels.web.helper.Dynselect _jspx_th_mp_dynselect_0 = new
com.mintpixels.web.helper.Dynselect();
_jspx_th_mp_dynselect_0.setJspContext(_jspx_page_context);
_jspx_th_mp_dynselect_0.setFoo(([Ljava.lang.String
;)org.apache.jasper.runtime.JspRuntimeLibrary.getValueFromPropertyEditorManager([
Ljava.lang.String;.class, "foo", "Selling,Refinancing"));
_jspx_th_mp_dynselect_0.setName("selling_refinancing");
_jspx_th_mp_dynselect_0.doTag();
return false;
  }


Is it just me, or does the line: _jspx_th_mp_dynselect_0.setFoo(([
Ljava.lang.String
;)org.apache.jasper.runtime.JspRuntimeLibrary.getValueFromPropertyEditorManager([
Ljava.lang.String;.class, "foo", "Selling,Refinancing"));

got a couple of syntax errors?

Alex


On 6/12/06, Alex Turner < [EMAIL PROTECTED]> wrote:
>
> I have the following lines in my source file:
>
> <%@ taglib prefix="mp" uri="com.mintpixels.web.helper" %>
> [snip]
>  name="selling_refinancing"/>
>
> When I run the jsp, I get the following errors:
>
> org.apache.jasper.JasperException: Unable to compile class for JSP
>
> An error occurred at line: 69 in the jsp file: /free_home_valuation.jsp
> Generated servlet error:
>
>
> Syntax error on token "[", delete this token
>
> An error occurred at line: 69 in the jsp file: /free_home_valuation.jsp
> Generated servlet error:
> Syntax error on token ";", delete this token
>
>
>
> An error occurred at line: 69 in the jsp file: /free_home_valuation.jsp
> Generated servlet error:
> Syntax error, insert ")" to complete Expression
>
> An error occurred at line: 69 in the jsp file: /free_home_valuation.jsp
>
>
> Generated servlet error:
> Syntax error on token ";", delete this token
>
> An error occurred at line: 69 in the jsp file: /free_home_valuation.jsp
> Generated servlet error:
> Syntax error, insert "]" to complete Expression
>
>
>
> An error occurred at line: 69 in the jsp file: /free_home_valuation.jsp
> Generated servlet error:
> Syntax error on token ")", delete this token
>
>
>org.apache.jasper.compiler.DefaultErrorHandler.javacError
>
> (DefaultErrorHandler.java:84)
>
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
>org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:409)
>org.apache.jasper.compiler.Compiler.compile
>
> (Compiler.java:288)
>org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
>org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
>org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java
>
> :563)
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
>org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
>org.apache.jasper.servlet.JspServlet.service(JspServlet.java
>
> :264)
>javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
> If I comment the line out (jsp comment <%--) the code runs fine.
>
> Anyone come across anything like this, cos I'm fresh out of ideas? (I
> have deleted the work directory, restarted the server, re-copied all the
> application code into the webapps directory to ensure that there can't be
> any old code lying around).
>
> Alex.
>
>



Re: Problem with tag library calling

2006-06-12 Thread Alex Turner

It looks like it's generating the following function:

 private boolean _jspx_meth_mp_dynselect_0(PageContext _jspx_page_context)
 throws Throwable {
   PageContext pageContext = _jspx_page_context;
   JspWriter out = _jspx_page_context.getOut();
   //  mp:dynselect
   com.mintpixels.web.helper.Dynselect _jspx_th_mp_dynselect_0 = new
com.mintpixels.web.helper.Dynselect();
   _jspx_th_mp_dynselect_0.setJspContext(_jspx_page_context);
   _jspx_th_mp_dynselect_0.setFoo(([Ljava.lang.String
;)org.apache.jasper.runtime.JspRuntimeLibrary.getValueFromPropertyEditorManager([
Ljava.lang.String;.class, "foo", "Selling,Refinancing"));
   _jspx_th_mp_dynselect_0.setName("selling_refinancing");
   _jspx_th_mp_dynselect_0.doTag();
   return false;
 }


Is it just me, or does the line: _jspx_th_mp_dynselect_0.setFoo(([
Ljava.lang.String
;)org.apache.jasper.runtime.JspRuntimeLibrary.getValueFromPropertyEditorManager([
Ljava.lang.String;.class, "foo", "Selling,Refinancing"));

got a couple of syntax errors?

Alex

On 6/12/06, Alex Turner <[EMAIL PROTECTED]> wrote:


I have the following lines in my source file:

<%@ taglib prefix="mp" uri="com.mintpixels.web.helper" %>
[snip]


When I run the jsp, I get the following errors:

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 69 in the jsp file: /free_home_valuation.jsp
Generated servlet error:

Syntax error on token "[", delete this token

An error occurred at line: 69 in the jsp file: /free_home_valuation.jsp
Generated servlet error:
Syntax error on token ";", delete this token


An error occurred at line: 69 in the jsp file: /free_home_valuation.jsp
Generated servlet error:
Syntax error, insert ")" to complete Expression

An error occurred at line: 69 in the jsp file: /free_home_valuation.jsp

Generated servlet error:
Syntax error on token ";", delete this token

An error occurred at line: 69 in the jsp file: /free_home_valuation.jsp
Generated servlet error:
Syntax error, insert "]" to complete Expression


An error occurred at line: 69 in the jsp file: /free_home_valuation.jsp
Generated servlet error:
Syntax error on token ")", delete this token


org.apache.jasper.compiler.DefaultErrorHandler.javacError
(DefaultErrorHandler.java:84)

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)

org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:409)
org.apache.jasper.compiler.Compiler.compile
(Compiler.java:288)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java
:563)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java
:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

If I comment the line out (jsp comment <%--) the code runs fine.

Anyone come across anything like this, cos I'm fresh out of ideas? (I have
deleted the work directory, restarted the server, re-copied all the
application code into the webapps directory to ensure that there can't be
any old code lying around).

Alex.




Problem with tag library calling

2006-06-12 Thread Alex Turner

I have the following lines in my source file:

<%@ taglib prefix="mp" uri="com.mintpixels.web.helper" %>
[snip]


When I run the jsp, I get the following errors:

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 69 in the jsp file: /free_home_valuation.jsp
Generated servlet error:
Syntax error on token "[", delete this token

An error occurred at line: 69 in the jsp file: /free_home_valuation.jsp
Generated servlet error:
Syntax error on token ";", delete this token

An error occurred at line: 69 in the jsp file: /free_home_valuation.jsp
Generated servlet error:
Syntax error, insert ")" to complete Expression

An error occurred at line: 69 in the jsp file: /free_home_valuation.jsp
Generated servlet error:
Syntax error on token ";", delete this token

An error occurred at line: 69 in the jsp file: /free_home_valuation.jsp
Generated servlet error:
Syntax error, insert "]" to complete Expression

An error occurred at line: 69 in the jsp file: /free_home_valuation.jsp
Generated servlet error:
Syntax error on token ")", delete this token



org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)

org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:409)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

If I comment the line out (jsp comment <%--) the code runs fine.

Anyone come across anything like this, cos I'm fresh out of ideas? (I have
deleted the work directory, restarted the server, re-copied all the
application code into the webapps directory to ensure that there can't be
any old code lying around).

Alex.


Re: manager webapp absent after installation

2006-03-25 Thread Alex Turner
It's in the server/webapps/ directory instead of directly in the webapps
directory

Alex

On 3/25/06, Alexander Nakhimovsky <[EMAIL PROTECTED]> wrote:
>
> I've run Windows installer, apache-tomcat-5.5.16.exe. It has worked in
> the sense that Tomcat is running as a service. However, there is no
> manager webapp, contrary to what I expect from documentation. How do I
> obtain the manager webapp?
>
> adn
>
> Alexander Nakhimovsky
> Computer Science Department
> Colgate University Hamilton NY 13346
>   http://cs.colgate.edu/~sasha
> Director, Project Afghanistan
>http://www.colgate.edu/desktopdefault1.aspx?tabid=2146
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Recommended Specs for Oracle 10g db server

2006-03-25 Thread Alex Turner
Turn off hyperthreading for starters.
Oracle requires a minimum of 5 seperate logical disks to function at optimal
in a production environment.  You will need a good raid controller, and a
good disk array to get any kind of decent insert speed.
You will need to do some serious oracle tuning, there are some good books
available out there for this.  But at the very least you need to set the SGA
to about 2.5 Gig, and tune the other memory usage things.  Profile your
database and find out which queries are running slow and why.  Look at
statspack (at least that's what we use in Oracle 9i) which can generate some
good reports.

Alex

On 3/25/06, Mohan Wickramasinghe <[EMAIL PROTECTED]> wrote:
>
> We have 12 jboss nodes using a single oracle 10g db server with following
> specs...
>
> 4GB RAM
> Dual CPU HT 3.2GHz Intel
> RHEL 4 smp
>
> We see load average going to 10 on a very regular basis and 30-90 during
> peak hours and see the database as the bottleneck to our application
> performance.
>
> We also had issue with c3p0 connections from nodes having issues and
> upgraded it.
>
> Can someone recommend machine (HW) specs for a oracle 10g database under
> these conditions please.
>
> regards
> mohan
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Better Linux Distribution for production environment

2006-03-23 Thread Alex Turner
I used to use RedHat, but switched to SuSe as the package selection was more
up to date.  RedHat seems to lag seriously behind current versions of
software, and many third party apps require the latest and greatest, which
RedHat often doesn't provide in it's enterprise solution.  Is RedHat tested
better, perhaps, but it doesn't matter if it doesn't come with what I need.

Alex

On 3/23/06, korbben <[EMAIL PROTECTED]> wrote:
>
>
> Hi all,
> Which Linux distribution can i choose for production environment ?
> (server:
> 4go ram, 1 processor, Apache, MySql, Tomcat with 20 webapps).
> Thanks.
> Korbben.
> --
> View this message in context:
> http://www.nabble.com/Better-Linux-Distribution-for-production-environment-t1329639.html#a3549917
> Sent from the Tomcat - User forum at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Symlinked directories

2006-02-08 Thread Alex Turner
Hi,

I'm using tomcat 5.5.12 on linux, and I'm wondering how I can get
tomcat to follow symlinks in a web app directory?

I have $CATALINA_ROOT/webapps/ROOT/pictures ->
/service/stuff/pictures, but tomcat ignores the symlink

Thanks,

Alex Turner

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



Re: Connection Pool Woes

2006-01-23 Thread Alex Turner
How does registering my pooling datasource with a naming directory
help connection management?  (Honest question - I really don't know)

Alex.

On 1/23/06, Asad Habib <[EMAIL PROTECTED]> wrote:
> You should use JNDI with your connection pool to ensure that connections
> are being managed appropriately.
>
> - Asad
>
>
> On Mon, 23 Jan 2006, Chris McCormack wrote:
>
> > Its poor practise to have a sql: jstl tag in production ready code.
> >
> >> How do you deal with this when using pure JSTL sql calls using a
> >> connection?  How does JSTL sql library release the connection at the
> >> end of a page to ensure that connections don't get leaked?
> >
> > For reasons exactly like this.
> >
> > __
> > This email has been scanned for all viruses by the MessageLabs SkyScan
> > service. For more information on a proactive anti-virus service working
> > around the clock, around the globe, visit http://www.messagelabs.com
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Connection Pool Woes

2006-01-23 Thread Alex Turner
I'll just point out here that you actualy haven't pointed out any issue.

I asked a question as to how, and you repsonded that it was an issue
without ever explaing how, or if there even is a problem.

Somehow I doubt the JSTL authors were so short sighted as not to
release database connections properly.  I'm sure they had production
usage in mind when it was written, I'm just wondering how.

All you have written is FUD without any actual data or knowledge
included that would give me a way to make a decision based in fact. 
Give me some hard facts if you have any as to why I shouldn't use JSTL
sql library.

Alex.

On 1/23/06, Chris McCormack <[EMAIL PROTECTED]> wrote:
> Its poor practise to have a sql: jstl tag in production ready code.
>
> > How do you deal with this when using pure JSTL sql calls using a
> > connection?  How does JSTL sql library release the connection at the
> > end of a page to ensure that connections don't get leaked?
>
> For reasons exactly like this.
>
> __
> This email has been scanned for all viruses by the MessageLabs SkyScan
> service. For more information on a proactive anti-virus service working
> around the clock, around the globe, visit http://www.messagelabs.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Setting up connection pools "on the fly"...

2006-01-20 Thread Alex Turner
Maybe you don't even want a connection pool, rather a simple
non-pooling datasource.  If you generate a pool of connections for
each and every database, you may end up with a great many open
connections to your database server that hardly ever get used.  I
don't know too much about MySQL, but  in most other databases, each
connection has certain allocated resources, and the database typically
limits the max connections.  I have a similar situation, but I use a
simple datasource, and a servlet to create a new datasource for each
database on initialization based on a database entries. You can easily
create a datasource on the fly in a servlet.  I don't know if this is
the 'right' answer, but it works for me.

Alex


On 1/20/06, Warrick Wilson <[EMAIL PROTECTED]> wrote:
> I've got a project where there's a basic interface, with some basic
> database access. However, when someone "signs up", then a new MySQL
> database will be allocated for them. There's security associated with
> it, and the user will have to log in to identify himself.
>
> How can I create a new connection pool for that new database for my
> web app? My current pool is set up in context.xml - do I modify that
> on the fly from my web app?
>
> What I'm doing currently is figuring out who the user is and which
> database he's associated with, and when I do any database work, the
> first statement is "USE " to get the proper database.
>
> Is there a better approach? More like a proper approach? (Says he who
> isn't sure he fully understands connection pools yet)
>
> --
> Warrick Wilson
> [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Connection Pool Woes

2006-01-20 Thread Alex Turner
How do you deal with this when using pure JSTL sql calls using a
connection?  How does JSTL sql library release the connection at the
end of a page to ensure that connections don't get leaked?  For the
case when I'm using a servlet, I have put in an explicit close() call
on the connection, but some pages are pure JSP.

Alex.

On 1/20/06, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:
>
>
> > -Original Message-
> > From: Alex Turner [mailto:[EMAIL PROTECTED]
> > Subject: Re: Connection Pool Woes
> >
> > It looks like the connection object was not being garbage collected
> > promptly (imagine that), and because it wasn't explicitly closed, it
> > was just hanging open until garbage collection happened (I'm more used
> > to python's garbage collector that is a bit more prompt).
>
> Garbage collection should have nothing to do with it; don't confuse
> finalizers with finally clauses.  If your application operation is
> dependent on a finalizer, you're in a world of hurt.  There is no
> guarantee that a finalizer will _ever_ be run.
>
>  - 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Connection Pool Woes

2006-01-20 Thread Alex Turner
It looks like the connection object was not being garbage collected
promptly (imagine that), and because it wasn't explicitly closed, it
was just hanging open until garbage collection happened (I'm more used
to python's garbage collector that is a bit more prompt).

Alex

On 1/20/06, Duan, Nick <[EMAIL PROTECTED]> wrote:
> The only way to close db connections is to do within your servlet/jsp
> application, i.e. java.sql.Connection.close().  But remember, the sql
> connections in the web apps are not the physical connections.  The
> physical connections are maintained by the db pool and they will remain
> open after the connections in the apps are closed, until the connection
> timeout is reached.
>
> The first thing is to make sure that the sql (or logical) connections
> are indeed closed in the app after an http session or user session is
> completed.  The next thing may be to reduce the timeout interval of the
> db connection pool.
>
> ND
>
> -Original Message-
> From: Alex Turner [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 20, 2006 10:37 AM
> To: users@tomcat.apache.org
> Subject: Connection Pool Woes
>
> I am using Tomcat 5.5.12 on RedHat ES 4.
>
> I have a server that is set to maxThreads="5", maxSpareThreads="5",
> and when I use a Simply Data Source, that does not pooling, if I hit
> the page a lot, I get over 30 connections opened, with database
> connections that are not closing quickly at all.  If this runs in
> production, I'm going to run out of database connections.
>
> If I try a pooling datasource, the same thing happens, except the
> server hangs on what I assume is the process to open a new connection
> once it hit's the connection pool's maxConnections number.
>
> I am using JSTL sql and core to do database queries, and I have a
> servlet called InitServlet that instantiates a DataSource and sets it
> as the default datasource.
>
> I am using Postgresql as my database, and using Jdbc3PoolingDataSource
> as my pooling datasource, and PGSimpleDataSource for my simple data
> source.
>
> What can I do to get these connections to close once a servlet or JSP
> has finished running?  The plan is do have dozens of applications
> running on this server, and if each app has it's own connection set,
> I'm gonna run out of connections really fast.
>
> Alex
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Connection Pool Woes

2006-01-20 Thread Alex Turner
I am using Tomcat 5.5.12 on RedHat ES 4.

I have a server that is set to maxThreads="5", maxSpareThreads="5",
and when I use a Simply Data Source, that does not pooling, if I hit
the page a lot, I get over 30 connections opened, with database
connections that are not closing quickly at all.  If this runs in
production, I'm going to run out of database connections.

If I try a pooling datasource, the same thing happens, except the
server hangs on what I assume is the process to open a new connection
once it hit's the connection pool's maxConnections number.

I am using JSTL sql and core to do database queries, and I have a
servlet called InitServlet that instantiates a DataSource and sets it
as the default datasource.

I am using Postgresql as my database, and using Jdbc3PoolingDataSource
as my pooling datasource, and PGSimpleDataSource for my simple data
source.

What can I do to get these connections to close once a servlet or JSP
has finished running?  The plan is do have dozens of applications
running on this server, and if each app has it's own connection set,
I'm gonna run out of connections really fast.

Alex

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