Re: SSl Query-- please help

2012-10-23 Thread vicky007aggarwal
Andre & Christopher thanks a lot for your time & help.

One last query related to mod _jk & mod_proxy_balancer modules:- among these 
two which one is preferred i mean which is more stable & has good performance.? 
Any idea

It will be great if you can share document link which talks about there pros & 
cons 

Thanks,
Vicky


On Oct 23, 2012, at 2:13 AM, Christopher Schultz  
wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> André,
> 
> On 10/22/12 2:34 AM, André Warnier wrote:
>> vicky007aggar...@yahoo.co.in wrote:
>>> All/Andre,
>>> 
>>> 
>>> """You could probably do this using mod_proxy_http instead of
>>> mod_jk (and a HTTPS Connector in Tomcat).  But you should then
>>> also accept the overhead."""
>>> 
>>> Queries :
>>> 
>>> 1. Based on above comment does that mean i can use mod_proxy
>>> module in order to have ssl communication between apache &
>>> tomcat.???
>> 
>> I think so, but you'd have to check that with the Apache
>> documentation.
> 
> Yes, you can: just use an https:// URL instead of http:// in your
> ProxyPass/ProxyPassReverse directives.
> 
>>> 2. Load balancing wont work using mod _proxy , correct ??
>> 
>> Wrong.  Look at the Apache documentation, mod_proxy_balancer
> 
> +1
> 
>>> 3. What overhead you're talking in setting up in setting up
>>> mod_proxy for ssl communication between apache & tomcat
>> 
>> Setting it up is not the overhead problem. The overhead is because
>> :
>> 
>> browser <- HTTPS -> Apache <- HTTPS -> Tomcat.
>> 
>> meaning : - the browser encrypts (you don't care) - Apache decrypts
>> (overhead, but unavoidable) - Apache encrypts (overhead,
>> avoidable) - Tomcat decrypts (overhead, avoidable)
> 
> +1
> 
> But, if you need to have a secure channel between httpd and Tomcat,
> then the encryption overhead is *not* avoidable. By using stunnel or a
> VPN, you can avoid needless TCP setup/teardown and repeated key
> exchanges, but the encryption obviously always needs to take place
> (and takes time).
> 
> - -chris
> -BEGIN PGP SIGNATURE-
> Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
> 
> iEYEARECAAYFAlCFr/wACgkQ9CaO5/Lv0PBOCACfY8fxwoAdlVjqEMuPRnHK2C9n
> pWkAoLf+8gL5xK0roxI0TPfl9NanhLAF
> =PA4C
> -END PGP SIGNATURE-
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 

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



Re: insfrastructure set list

2012-10-23 Thread Daniel Barcellos
Thank you só much Christofer that's what I'm talking about!!!

Muito obrigado pela ajuda!!!

Sent from my iPhone

On 23/10/2012, at 22:38, Christopher Schultz  
wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Daniel,
> 
> On 10/23/12 4:12 PM, Daniel Barcellos wrote:
>> Imagine this simple examplo... we used to develop app for Oracle
>> forms that runs over a oracle application server. If you need to
>> install it you should obey a big list of requirement so that every
>> thing under its control will run ok. Now we need to use and deploy
>> software over Tomcat that is basically a free server. Where can I
>> find those requirements?
> 
> Tomcat by itself (well, with the JVM) can run in about 16MiB of Java
> heap. Your webapp will probably need a *whole* lot more than that.
> 
> Tomcat is lean and mean. OAS is a beast that has higher minimal
> requirements, but I suspect that OAS all by itself can run in maybe
> 32MiB or 40MiB. The reason they tell you that you need 32GiB of heap
> space is because they want your app to work pretty much no matter what.
> 
> Realistically, only you can determine what your requirements are.
> 
> Start by giving the JVM plenty of heap space. Let's say 1GiB (if you
> have it) on a test bed. Then, deploy your webapp, force a few GCs (use
> jconsole or something else that allows you to do that) then check the
> memory usage: that's your baseline. You cannot possibly go below that
> and support even 0 users.
> 
> Then, login a single user and go through a typical workflow. Repeat
> the GC/heap dance from above and see what the requirements are for a
> single user. Then try 10 users. Then 20 users. You can even graph them
> if you want to get fancy (which I recommend). I also recommend using a
> tool like JMeter to act as users. This will give you something
> repeatable and scalable (from a /load/ point of view).
> 
> You might still be wrong about the heap space, because you may have
> huge transient requirements during a single transaction (for instance,
> you need to build an in-memory image, plot stuff against it, compress
> the image, etc.). You'll need to load-test your webapp in a test bed:
> that's the only way you can really know your requirements.
> 
> The CPU speed is more difficult to pinpoint because realistically, any
> CPU will do, right? It's just a question of how long it takes to do
> stuff. So, you have to do all of the above (1 user, 10 users, 100
> users) working constantly and checking the response time to see if it
> meets your targets. For instance, some people require that their
> response times are less than 500ms. For you, that might be more like
> 3000ms. You may have different targets for different transactions:
> choosing a chart template might need to be within 500ms but it's okay
> if the actual chart generation takes 10s.
> 
> In case you aren't realizing it, yet: nobody can tell you what your
> own requirements are: you have to go figure them out yourself.
> 
> If it makes you feel better, I can tell you what you need and I'm sure
> you'll be happy with the performance. Here goes:
> 
> 1 IBM BladeCenter Chassis
> 4 IBM BladeCenter HSxx (you get to choose which ones)
>  (You'll want a chassis with at least 8 blade slots: you'll need
>   room to grow)
> Go for 1TiB per blade: you'll thank me later.
> You're definitely going to need a bank of SAS disks. Don't bother with
> elaborate RAID rigs or anything like that: just mirror everything
> because you don't want to waste time waiting for any RAID re-syncing.
> 
> Or you could just fire the whole thing up on a laptop and beat the
> hell out of it. Your choice.
> 
> - -chris
> -BEGIN PGP SIGNATURE-
> Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
> 
> iEYEARECAAYFAlCHOHIACgkQ9CaO5/Lv0PA0hQCfeXBZPLpsaQl9uvLI2QKGQcwA
> 3NMAoLnjdE1dzgLwCedtMYwoPc12q7Pj
> =LdQW
> -END PGP SIGNATURE-
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 

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



Re: insfrastructure set list

2012-10-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Daniel,

On 10/23/12 4:12 PM, Daniel Barcellos wrote:
> Imagine this simple examplo... we used to develop app for Oracle
> forms that runs over a oracle application server. If you need to
> install it you should obey a big list of requirement so that every
> thing under its control will run ok. Now we need to use and deploy
> software over Tomcat that is basically a free server. Where can I
> find those requirements?

Tomcat by itself (well, with the JVM) can run in about 16MiB of Java
heap. Your webapp will probably need a *whole* lot more than that.

Tomcat is lean and mean. OAS is a beast that has higher minimal
requirements, but I suspect that OAS all by itself can run in maybe
32MiB or 40MiB. The reason they tell you that you need 32GiB of heap
space is because they want your app to work pretty much no matter what.

Realistically, only you can determine what your requirements are.

Start by giving the JVM plenty of heap space. Let's say 1GiB (if you
have it) on a test bed. Then, deploy your webapp, force a few GCs (use
jconsole or something else that allows you to do that) then check the
memory usage: that's your baseline. You cannot possibly go below that
and support even 0 users.

Then, login a single user and go through a typical workflow. Repeat
the GC/heap dance from above and see what the requirements are for a
single user. Then try 10 users. Then 20 users. You can even graph them
if you want to get fancy (which I recommend). I also recommend using a
tool like JMeter to act as users. This will give you something
repeatable and scalable (from a /load/ point of view).

You might still be wrong about the heap space, because you may have
huge transient requirements during a single transaction (for instance,
you need to build an in-memory image, plot stuff against it, compress
the image, etc.). You'll need to load-test your webapp in a test bed:
that's the only way you can really know your requirements.

The CPU speed is more difficult to pinpoint because realistically, any
CPU will do, right? It's just a question of how long it takes to do
stuff. So, you have to do all of the above (1 user, 10 users, 100
users) working constantly and checking the response time to see if it
meets your targets. For instance, some people require that their
response times are less than 500ms. For you, that might be more like
3000ms. You may have different targets for different transactions:
choosing a chart template might need to be within 500ms but it's okay
if the actual chart generation takes 10s.

In case you aren't realizing it, yet: nobody can tell you what your
own requirements are: you have to go figure them out yourself.

If it makes you feel better, I can tell you what you need and I'm sure
you'll be happy with the performance. Here goes:

1 IBM BladeCenter Chassis
4 IBM BladeCenter HSxx (you get to choose which ones)
  (You'll want a chassis with at least 8 blade slots: you'll need
   room to grow)
Go for 1TiB per blade: you'll thank me later.
You're definitely going to need a bank of SAS disks. Don't bother with
elaborate RAID rigs or anything like that: just mirror everything
because you don't want to waste time waiting for any RAID re-syncing.

Or you could just fire the whole thing up on a laptop and beat the
hell out of it. Your choice.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlCHOHIACgkQ9CaO5/Lv0PA0hQCfeXBZPLpsaQl9uvLI2QKGQcwA
3NMAoLnjdE1dzgLwCedtMYwoPc12q7Pj
=LdQW
-END PGP SIGNATURE-

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



Re: tomcat jdbc

2012-10-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

S Ahmed,

On 10/23/12 5:04 PM, S Ahmed wrote:
> Ok from what I understood, if you want to capture statistics or
> look into jmx related metrics, you have to manually fireup
> visualvm/jconsole i.e. be on your computer, and monitor it as
> oppose to somethign that runs 24/7

Or you can take discrete samples at intervals:
http://tomcat.apache.org/tomcat-7.0-doc/monitoring.html#Using_the_JMXProxyServlet

There are lots of things besides JVisualVM and JConsole that can
communicate via JMX. You can even write your own JMX client that "runs
24/7" even though you still can really only take discrete samples as
often as you want.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlCHMzgACgkQ9CaO5/Lv0PD5+gCgpd7pHxv8nDlqfTtSTJY7nldZ
HswAoLwmIhMFsllIVBrbpZDh4YlfigJ1
=i96n
-END PGP SIGNATURE-

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



Re: insfrastructure set list

2012-10-23 Thread Daniel Barcellos
Hi Guys,

You've been greate with your help! I knew that all replies will have useful 
even if some o you guys do not agree with my considarations nor if I could make 
myself understandable!

I think the two last answers can send me to the right direction!

So thanks again!!

Obrigado!

Sent from my iPhone

On 23/10/2012, at 18:57, Mark Eggers  wrote:

> On 10/23/2012 1:12 PM, Daniel Barcellos wrote:
>> Hi Chris,
>> 
>> you've said: "I think that you are trying to use this list incorrectly...".
>> 
>> Thank you for your patience in advising me how should I use this list. I'm
>> pretty sure you're right, but if I'm here that's because I'm not able to
>> find any good solution in the google's ocean.
>> 
>> I was wondering if based on your experience that is possible to setup my
>> enviroment since I was already faced some issues due to miss configuration
>> or even because my server just got hanged by consuming all it thread and so
>> on.
>> 
>> Hi Christopher,
>> 
>> It's a chart solution that uses Primefaces componenet suit.
>> 
>> I was wondering that based in the fact that this app will have to handle
>> 100 users over it. And I was wondering that since i'm not sure about the
>> hardware I have on the client side, I'd like to know
>> if there's a good setup like how many virtual memory do I need to use, how
>> many threads do I need to set... stuffs like that.
>> 
>> I'm pretty sure that someone on this list already faced some kind of
>> scenario and might share his knoledge...
>> 
>> Imagine this simple examplo... we used to develop app for Oracle forms that
>> runs over a oracle application server. If you need to install it you should
>> obey a big list of requirement
>> so that every thing under its control will run ok.
>> Now we need to use and deploy software over Tomcat that is basically a free
>> server. Where can I find those requirements? I'm not able to find them on
>> google because there's a lot of
>> specif case documents and posts...
>> 
>> Cheers,
>> 
>> 
>> 2012/10/23 chris derham 
>> 
 Today we're about to deploy a simple app that is basically a charts
 solution that will run over Tomcat 7.X. Well till there everything is all
 right. But since I'm not a heavy user of Tomcat I'm not so sure what
>>> could
 that be the best settup for my app for not have problems in a first sight
 by a miss configuration.
 
 This app will have 100 concurrent users and in terms of hardware I'm not
 sure what they will give us.
 
 Is that possible that you guys share some experience and minimal setup
>>> due
 to those above scenario?
 
 Thanks!!!
>>> 
>>> Daniel,
>>> 
>>> I think that you are trying to use this list incorrectly. If everyone
>>> that wanted to use tomcat emailed the list, none of the people who
>>> answer questions on the list would be able to get any work done. They
>>> are only answering the questions posted on this list in their own free
>>> time. Nobody is paid to answer questions on this list.
>>> 
>>> The suggested approach to using tomcat (and open source software in
>>> general) is
>>> 
>>> 1) download, install, try it out
>>> 2) if you get an error, google for the error message. 99.99% of the
>>> time, somebody else will have hit the problem and commented about it
>>> somewhere
>>> 3) if you can't fix it by yourself, ask the list
>>> 
>>> You seem to be asking "for this piece of software (that I won't tell
>>> you anything about), how should I configure tomcat?" Nobody can answer
>>> that question. We don't know the software - you haven't told us. We
>>> don't know the hardware. We don't know the load.
>>> 
>>> Even if people did know the above, the answer is always to try your
>>> suggested load using your hardware, and see what happens. The defaults
>>> generally work very well in a broad range of situations. That's why
>>> they are the defaults. Perhaps you will need to tweak some settings,
>>> but you need to have a baseline, and method to test what effect each
>>> change actually has.
>>> 
>>> HTH
>>> 
>>> Chris
> 
> As many others have said, there is no magic bullet.
> 
> OK,
> 
> So now we know that you're running a Primefaces application (JSF widget set) 
> on Tomcat 7.x.
> 
> We don't know if you're using JSF 1.1 or JSF 2 (and the corresponding version 
> of Primefaces).
> 
> We don't know if you're using CDI with your Primefaces application (and if 
> so, then you are using JSF 2).
> 
> If you are using CDI, then you'll need to include both the JBoss Weld Servlet 
> (or something similar) and an appropriate configuration in context.xml and 
> web.xml.
> 
> I use Maven to build most of my applications these days, so here are the 
> snippets I use for JSF 2 with CDI on Tomcat 7.
> 
> 
> 
>org.jboss.weld.servlet
>weld-servlet
>1.1.9.Final
> 
> 
> 
>   auth="Container"
>  type="javax.enterprise.inject.spi.BeanManager"
>  factory="org.jboss.weld.resources.ManagerObjectFactory"/>
> 
> 
> 
>   

Re: Two (different) issues with Tomcat 7.0.32 AJP-APR and AJP-NIO connectors

2012-10-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Konstantin,

On 10/22/12 1:19 PM, verlag.preis...@t-online.de wrote:
> I'm running Tomcat 7.0.32 with Java 1.7.0_09 (64-bit) on Windows 
> Server 2008 R2 (64-bit), behind IIS 7.5 with ISAPI Redirector
> 1.2.37. For the AJP connection, I used the AJP-APR connector (with
> Tomcat Native 1.1.24).
> 
> 1) This worked perfectly fine since the initial setup of the
> server 3 months ago (however with lower version numbers of Tomcat
> and Java), but 3 days ago, suddenly the JVM crashed, with following
> crash report:

Java 1.7.0_09 was only released a few days ago. Perhaps that could be
the problem?

> # # A fatal error has been detected by the Java Runtime
> Environment: # #  EXCEPTION_ACCESS_VIOLATION (0xc005) at
> pc=0x7160e291, pid=4028, tid=4060 # # JRE version:
> 7.0_09-b05 # Java VM: Java HotSpot(TM) 64-Bit Server VM (23.5-b02
> mixed mode windows-amd64 compressed oops) # Problematic frame: # V
> [jvm.dll+0xae291]
> 
> At a first glance this seems like a JVM bug (as the current thread 
> is GCTaskThread), but when I googled for it, most sources say that 
> this is mostly caused by bugs in JNI code / a library that uses
> JNI [1].

That sure looks like a JVM bug, but it's always possible that tcnative
gave the JVM a bad pointer and so the bug is in tcnative.

Can you provide the full back-trace?

> Unfortunately, for me this means that I have to consider the APR 
> connectors on 64-bit Windows as broken (at least for the time
> being), and therefore I switched to the NIO/BIO ones and removed
> the TC native library. If I will get a JVM crash again, then this
> would probably mean that it was not the fault of the TC native
> library. ;)

You shouldn't have to abandon tcnative entirely... that is, you can
just switch connectors and leave the native library there doing
(virtually) nothing.

> 2.) After I switched to the AJP-NIO connector, I got the following
> stacktrace in catalina.log: Okt 20, 2012 2:58:51 PM
> org.apache.coyote.ajp.AjpNioProcessor process SEVERE: Error
> processing request java.nio.BufferOverflowException at
> java.nio.HeapByteBuffer.put(HeapByteBuffer.java:183) at
> org.apache.coyote.ajp.AjpNioProcessor.output(AjpNioProcessor.java:281)
>
> 
at
org.apache.coyote.ajp.AbstractAjpProcessor$SocketOutputBuffer.doWrite(AbstractAjpProcessor.java:1122)
> at org.apache.coyote.Response.doWrite(Response.java:504) at
> org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:383)
>
> 
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:462)
> at
> org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:334)
>
> 
at org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:283)
> at
> org.apache.catalina.connector.Response.finishResponse(Response.java:514)
>
> 
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:434)
> at
> org.apache.coyote.ajp.AjpNioProcessor.process(AjpNioProcessor.java:184)
>
> 
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
> at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
>
> 
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>
> 
at java.lang.Thread.run(Thread.java:722)
> 
> Maybe this could be related to bug 53119 [2] (the stack traces look
> very similar)? (However I have not yet tried if this is
> reproducible with the given testcase - when I tested it back then
> with Tomcat 7.0.27's AJP-NIO connector, I could not reproduce the
> error).

Definitely file that in Bugzilla: it might actually be an identical
issue that needs to be fixed in the non-APR flavor of the AJP
connector (though Konstantin Kolinko is usually quite thorough and I
wouldn't have expected a mirror-bug to have slipped through the cracks).

> So, currently I have switched to the AJP-BIO connector.

Well, the good news is that httpd should be handling the HTTP
pipelining, keepalives, etc. and so the benefits of using APR are
lessened in general and so switching-away from APR shouldn't be that
traumatic.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlCHB9EACgkQ9CaO5/Lv0PANtQCePjtPlZcXu07Kl4+W5PwvUTMD
3HUAn3pFP7neIgy4EwLq10m3wm34CBWc
=KJDf
-END PGP SIGNATURE-

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



Re: tomcat jdbc

2012-10-23 Thread S Ahmed
Ok from what I understood, if you want to capture statistics or look into
jmx related metrics, you have to manually fireup visualvm/jconsole i.e. be
on your computer, and monitor it as oppose to somethign that runs 24/7

On Mon, Oct 22, 2012 at 1:58 PM, Pid  wrote:

> On 22/10/2012 15:37, S Ahmed wrote:
> > I was thinking of using this: https://github.com/codahale/metrics
> >
> > Much easier to have this keep track of stats, and not having to rely on
> > jconsole just to get in insight.
>
> Why is it easier to instrument Tomcat's code than to just use the JMX
> info that's already exposed?
>
> VisualVM & JConsole are not monitoring tools, they just display the info
> that's already exposed.  Strongly recommend you at least familiarise
> yourself with what's in the Tomcat MBeans before you proceed.
>
>
> p
>
> > On Fri, Oct 19, 2012 at 5:37 PM, Pid  wrote:
> >
> >> On 19/10/2012 16:18, Daniel Mikusa wrote:
> >>> On Oct 18, 2012, at 2:51 PM, S Ahmed wrote:
> >>>
>  Hi,
> 
>  When using the jdbc connection pool library, would it be possible to
>  somehow record the # of connections that are being used,
>  when the # of connections in the pool are being saturated etc., or is
> >> that something that
>  would have to be modified in the library itself?
> >>>
> >>> The connection pool publishes some statistics to JMX.  An easy way to
> >> see them is connect with jconsole.  If you need more advanced
> statistics,
> >> you could check / monitor them programmatically or use an existing
> >> monitoring tool.
> >>
> >> +1  Use VisualVM with the MBeans plugin or JConsole.
> >>
> >>
> >> p
> >>
> >>> Dan
> >>>
> >>>
> 
>  i.e. assuming I have can keep track of these counters, is there a way
> to
>  monitor these events in the library or would the jdbc library itself
> >> need
>  to be modified to expose these events?
> >>>
> >>>
> >>>
> >>> -
> >>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> >>> For additional commands, e-mail: users-h...@tomcat.apache.org
> >>>
> >>
> >>
> >> --
> >>
> >> [key:62590808]
> >>
> >>
> >
>
>
> --
>
> [key:62590808]
>
>


Re: Tomcat 6.0 - JNDI resource caching over virtual hosts

2012-10-23 Thread Pid
On 23/10/2012 21:54, Christopher Schultz wrote:
> Pid,
> 
> On 10/23/12 3:00 PM, Pid wrote:
>> On 23/10/2012 16:55, Jan Kostelansky wrote:
>>> I am using Tomcat 6.0.18 deployed as web service on Windows XP
>>> SP3.
>>>
>>>
>>>
>>> I created additional Host element in conf/server.xml, so I have
>>> two virtual hosts: localhost (default) and janko
>>>
>>> 
>>>
>>> 
>>>
>>> >> directory="logs"
>>>
>>> prefix="its_access_log." suffix=".txt" pattern="common" 
>>> resolveHosts="false"/>
>>>
>>> 
>>>
>>>
>>>
>>> I deployed the same web applications in both hosts. The first
>>> web application is main, the other one is hypersonic database as
>>> storage for the web application. The main web application defines
>>> access to hypersonic database as resource.
>>>
>>> Then localhost web application points to hypersonic listening on
>>> port 9002
>>>
>>> >>
>>> name="jdbc/profile"
>>>
>>> auth="Container"
>>>
>>> uniqueResourceName="jdbc/profile"
>>>
>>> type="com.atomikos.jdbc.nonxa.NonXADataSourceBean"
>>>
>>> factory="org.apache.naming.factory.BeanFactory"
>>>
>>> connectionTimeout="30"
>>>
>>> poolSize="3"
>>>
>>> user="sa"
>>>
>>> password=""
>>>
>>> driverClassName="org.hsqldb.jdbcDriver"
>>>
>>> url="jdbc:hsqldb:hsql://localhost:9002"
>>>
>>> />
>>>
>>> Then janko web application points to hypersonic listening on port
>>> 9003
>>>
>>> >>
>>> name="jdbc/profile"
>>>
>>> auth="Container"
>>>
>>> uniqueResourceName="jdbc/profile"
>>>
>>> type="com.atomikos.jdbc.nonxa.NonXADataSourceBean"
>>>
>>> factory="org.apache.naming.factory.BeanFactory"
>>>
>>> connectionTimeout="30"
>>>
>>> poolSize="3"
>>>
>>> user="sa"
>>>
>>> password=""
>>>
>>> driverClassName="org.hsqldb.jdbcDriver"
>>>
>>> url="jdbc:hsqldb:hsql://janko:9003"
>>>
>>> />
>>>
>>> The deployment descriptors are defined in conf/Catalina/localhost
>>> and conf/Catalina/janko folders. docBase points outside of
>>> tomcat_home.
>>>
>>>
>>>
>>> However when accessing both web applications only one data source
>>> is used by both web applications depending which one is used
>>> first. It looks to me that JNDI name jdbc/profile is shared
>>> across web applications.
> 
>> That's because you can't give the same JNDI name to two different
>> DBs. What about trying to use two different names for the
>> resources?
> 
> I thought locally-defined JNDI resources were essentially private to a
> particular webapp. Is that not the case? I suppose not, since a JNDI
> DataSource will outlive the webapp that caused it to be created, and a
> newly-deployed webapp can inherit the old one, so... I guess I
> shouldn't have been surprised.

I can't find docs to support my position, but I'm (was?) sure it's the
case.  Obscure bug, deliberate design or one of us has the wrong end of
(possibly the wrong) stick?

Interesting.  Might put that on the backlog to have a sniff around the code.


p

> Jan, you ought to be able to change the name of the JNDI name and then
> use  to map it over to what your webapp expects.
> 
> I noticed that you are using the "uniqueResourceName" attribute in
> ... what is that?
> 
> Thanks,
> -chris
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 

-- 

[key:62590808]



signature.asc
Description: OpenPGP digital signature


Re: any servlets to implement sort of a google-play-like functionality for android and other types of mobile devices?

2012-10-23 Thread Pid
On 23/10/2012 21:14, Albretch Mueller wrote:
>> Using Java Web Start does not require any Java on the backend
>> whatsoever. You can serve a Java Web Start app from a vanilla IIS with
>> no dynamic content at all. So, Tomcat itself has really nothing to do
>> with it all.
> ~
>  Not quite. The JNLP/java did most of the work itself, but if you use
> advanced server support with elaborate versioning descriptors you have
> to declare and handle the logical (URL) to physical (file system)
> mapping, declare new mime types for jardiff functionality, handle
> Locale related issues, ...

All of that seems like things that can be handled with Apache HTTPD.


>  If using Java Web Start would not require any Java on the back end
> whatsoever, then Marinilli on this JNLP wouldn't have dedicated a
> chapter to it ;-)

I'm curious - what functionality is required to serve JNLP apps - is
there something more than HTTP requests?


p

>> Is he asking if Tomcat has an AppStore for JNLP apps?
> ~
>>> I *think* he's asking if anybody has started a project to create an app
>>> store that runs under TC, as an open-source project.  I.E. he's looking
>>> for code to make his own app store.
> ~
>> For JNLP.  Right...
> ~
>  No exactly. I do have two things in mind. I have developed a full
> blown application based on Swing (its features are a bit too
> complicated for a mobile device) and there are some light
> functionalities with a nails and thumbs kind of GUI for client mobile
> devices
> ~
>  I have noticed (and confirmed by your reactions) that this is
> something that most people are not interested in
> ~
>  lbrtchx
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 


-- 

[key:62590808]



signature.asc
Description: OpenPGP digital signature


Re: insfrastructure set list

2012-10-23 Thread Mark Eggers

On 10/23/2012 1:12 PM, Daniel Barcellos wrote:

Hi Chris,

you've said: "I think that you are trying to use this list incorrectly...".

Thank you for your patience in advising me how should I use this list. I'm
pretty sure you're right, but if I'm here that's because I'm not able to
find any good solution in the google's ocean.

I was wondering if based on your experience that is possible to setup my
enviroment since I was already faced some issues due to miss configuration
or even because my server just got hanged by consuming all it thread and so
on.

Hi Christopher,

It's a chart solution that uses Primefaces componenet suit.

I was wondering that based in the fact that this app will have to handle
100 users over it. And I was wondering that since i'm not sure about the
hardware I have on the client side, I'd like to know
if there's a good setup like how many virtual memory do I need to use, how
many threads do I need to set... stuffs like that.

I'm pretty sure that someone on this list already faced some kind of
scenario and might share his knoledge...

Imagine this simple examplo... we used to develop app for Oracle forms that
runs over a oracle application server. If you need to install it you should
obey a big list of requirement
so that every thing under its control will run ok.
Now we need to use and deploy software over Tomcat that is basically a free
server. Where can I find those requirements? I'm not able to find them on
google because there's a lot of
specif case documents and posts...

Cheers,


2012/10/23 chris derham 


Today we're about to deploy a simple app that is basically a charts
solution that will run over Tomcat 7.X. Well till there everything is all
right. But since I'm not a heavy user of Tomcat I'm not so sure what

could

that be the best settup for my app for not have problems in a first sight
by a miss configuration.

This app will have 100 concurrent users and in terms of hardware I'm not
sure what they will give us.

Is that possible that you guys share some experience and minimal setup

due

to those above scenario?

Thanks!!!


Daniel,

I think that you are trying to use this list incorrectly. If everyone
that wanted to use tomcat emailed the list, none of the people who
answer questions on the list would be able to get any work done. They
are only answering the questions posted on this list in their own free
time. Nobody is paid to answer questions on this list.

The suggested approach to using tomcat (and open source software in
general) is

1) download, install, try it out
2) if you get an error, google for the error message. 99.99% of the
time, somebody else will have hit the problem and commented about it
somewhere
3) if you can't fix it by yourself, ask the list

You seem to be asking "for this piece of software (that I won't tell
you anything about), how should I configure tomcat?" Nobody can answer
that question. We don't know the software - you haven't told us. We
don't know the hardware. We don't know the load.

Even if people did know the above, the answer is always to try your
suggested load using your hardware, and see what happens. The defaults
generally work very well in a broad range of situations. That's why
they are the defaults. Perhaps you will need to tweak some settings,
but you need to have a baseline, and method to test what effect each
change actually has.

HTH

Chris


As many others have said, there is no magic bullet.

OK,

So now we know that you're running a Primefaces application (JSF widget 
set) on Tomcat 7.x.


We don't know if you're using JSF 1.1 or JSF 2 (and the corresponding 
version of Primefaces).


We don't know if you're using CDI with your Primefaces application (and 
if so, then you are using JSF 2).


If you are using CDI, then you'll need to include both the JBoss Weld 
Servlet (or something similar) and an appropriate configuration in 
context.xml and web.xml.


I use Maven to build most of my applications these days, so here are the 
snippets I use for JSF 2 with CDI on Tomcat 7.




org.jboss.weld.servlet
weld-servlet
1.1.9.Final







CDI listener

org.jboss.weld.environment.servlet.Listener



Tomcat 7 is a servlet container and is not required to provide CDI as 
per the specifications.


Now, we get to resource usage of your application.

In my limited experience, I've found that JSF / Primefaces is a bit 
heavier than just plain MVC style applications. Memory (heap, perm-gen) 
may need to be increased.


Then again, it may not need to be increased.

The only way to know is to test your application. Set up a stock Tomcat 
(no changes to the default configuration), and then test. Since 
Primefaces can make heavy use of AJAX, a good testing platform is 
probably Selenium.


First, depending on your platform, you may need to increase heap size.

Second, depending on the number of classes you use, you may need to 
increase permgen size.


Once a tool like JConsole or VisualVM shows a stab

Re: Tomcat 6.0 - JNDI resource caching over virtual hosts

2012-10-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Pid,

On 10/23/12 3:00 PM, Pid wrote:
> On 23/10/2012 16:55, Jan Kostelansky wrote:
>> I am using Tomcat 6.0.18 deployed as web service on Windows XP
>> SP3.
>> 
>> 
>> 
>> I created additional Host element in conf/server.xml, so I have
>> two virtual hosts: localhost (default) and janko
>> 
>> 
>> 
>> 
>> 
>> > directory="logs"
>> 
>> prefix="its_access_log." suffix=".txt" pattern="common" 
>> resolveHosts="false"/>
>> 
>> 
>> 
>> 
>> 
>> I deployed the same web applications in both hosts. The first
>> web application is main, the other one is hypersonic database as
>> storage for the web application. The main web application defines
>> access to hypersonic database as resource.
>> 
>> Then localhost web application points to hypersonic listening on
>> port 9002
>> 
>> > 
>> name="jdbc/profile"
>> 
>> auth="Container"
>> 
>> uniqueResourceName="jdbc/profile"
>> 
>> type="com.atomikos.jdbc.nonxa.NonXADataSourceBean"
>> 
>> factory="org.apache.naming.factory.BeanFactory"
>> 
>> connectionTimeout="30"
>> 
>> poolSize="3"
>> 
>> user="sa"
>> 
>> password=""
>> 
>> driverClassName="org.hsqldb.jdbcDriver"
>> 
>> url="jdbc:hsqldb:hsql://localhost:9002"
>> 
>> />
>> 
>> Then janko web application points to hypersonic listening on port
>> 9003
>> 
>> > 
>> name="jdbc/profile"
>> 
>> auth="Container"
>> 
>> uniqueResourceName="jdbc/profile"
>> 
>> type="com.atomikos.jdbc.nonxa.NonXADataSourceBean"
>> 
>> factory="org.apache.naming.factory.BeanFactory"
>> 
>> connectionTimeout="30"
>> 
>> poolSize="3"
>> 
>> user="sa"
>> 
>> password=""
>> 
>> driverClassName="org.hsqldb.jdbcDriver"
>> 
>> url="jdbc:hsqldb:hsql://janko:9003"
>> 
>> />
>> 
>> The deployment descriptors are defined in conf/Catalina/localhost
>> and conf/Catalina/janko folders. docBase points outside of
>> tomcat_home.
>> 
>> 
>> 
>> However when accessing both web applications only one data source
>> is used by both web applications depending which one is used
>> first. It looks to me that JNDI name jdbc/profile is shared
>> across web applications.
> 
> That's because you can't give the same JNDI name to two different
> DBs. What about trying to use two different names for the
> resources?

I thought locally-defined JNDI resources were essentially private to a
particular webapp. Is that not the case? I suppose not, since a JNDI
DataSource will outlive the webapp that caused it to be created, and a
newly-deployed webapp can inherit the old one, so... I guess I
shouldn't have been surprised.

Jan, you ought to be able to change the name of the JNDI name and then
use  to map it over to what your webapp expects.

I noticed that you are using the "uniqueResourceName" attribute in
... what is that?

Thanks,
- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlCHA+kACgkQ9CaO5/Lv0PApBQCZAZGGXnn27u1pDT7eAOJBmEt8
SKIAoL+qFmZVzZ8T7450CLbVkcLs/d0r
=1cJK
-END PGP SIGNATURE-

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



Re: Tomcat 6.0 - JNDI resource caching over virtual hosts

2012-10-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jan,

On 10/23/12 11:55 AM, Jan Kostelansky wrote:
> I am using Tomcat 6.0.18 deployed as web service on Windows XP
> SP3.

Upgrade: that version of Tomcat is 4 years old and has known security
vulnerabilities (http://tomcat.apache.org/security-6.html).

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlCHAxMACgkQ9CaO5/Lv0PAPqQCfe39/ccffaE2cTy7TAjBr/p+y
zr4An25Ns3lzy15KB5+FZ47OXmQKUDB+
=hIXj
-END PGP SIGNATURE-

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



Re: insfrastructure set list

2012-10-23 Thread David kerber

On 10/23/2012 4:12 PM, Daniel Barcellos wrote:

Hi Chris,

you've said: "I think that you are trying to use this list incorrectly...".

Thank you for your patience in advising me how should I use this list. I'm
pretty sure you're right, but if I'm here that's because I'm not able to
find any good solution in the google's ocean.

I was wondering if based on your experience that is possible to setup my
enviroment since I was already faced some issues due to miss configuration
or even because my server just got hanged by consuming all it thread and so
on.

Hi Christopher,

It's a chart solution that uses Primefaces componenet suit.

I was wondering that based in the fact that this app will have to handle
100 users over it. And I was wondering that since i'm not sure about the
hardware I have on the client side, I'd like to know
if there's a good setup like how many virtual memory do I need to use, how
many threads do I need to set... stuffs like that.

I'm pretty sure that someone on this list already faced some kind of
scenario and might share his knoledge...

Imagine this simple examplo... we used to develop app for Oracle forms that
runs over a oracle application server. If you need to install it you should
obey a big list of requirement
so that every thing under its control will run ok.
Now we need to use and deploy software over Tomcat that is basically a free
server. Where can I find those requirements? I'm not able to find them on
google because there's a lot of
specif case documents and posts...


The problem is that Tomcat is a far more general-purpose server than 
Oracle forms under Oracle.  You can literally do pretty much ANYTHING 
under Tomcat that can be done in java.  So benchmarking and server 
sizing requirements are highly application-specific.


For example, I support and maintain two major applications for my 
company.  One of them is very simple and runs 600+ simultaneous clients 
under a single tomcat instance, and the server that it's on runs 8 
separate tomcat instances, totaling over 2000 simultaneous users, and 
the CPU of all those instances combined never goes over 5 to 10% usage.


The other application never has more than 20 or so simultaneous users, 
but it is far more demanding, and routinely keeps the cpu trucking along 
at 20% or so during the busy times of the day.


So, once you get *your* application running, you're going to have to 
benchmark it yourself, because the server and resource requirements it 
needs probably have no resemblance to either of my applications.  Once 
you have some data, come back to the list with specific questions and 
problems, and we'll be much more able to help you.  It was people on 
this list that helped me get my simple app to be able to handle as much 
as it does...






Cheers,


2012/10/23 chris derham


Today we're about to deploy a simple app that is basically a charts
solution that will run over Tomcat 7.X. Well till there everything is all
right. But since I'm not a heavy user of Tomcat I'm not so sure what

could

that be the best settup for my app for not have problems in a first sight
by a miss configuration.

This app will have 100 concurrent users and in terms of hardware I'm not
sure what they will give us.

Is that possible that you guys share some experience and minimal setup

due

to those above scenario?

Thanks!!!


Daniel,

I think that you are trying to use this list incorrectly. If everyone
that wanted to use tomcat emailed the list, none of the people who
answer questions on the list would be able to get any work done. They
are only answering the questions posted on this list in their own free
time. Nobody is paid to answer questions on this list.

The suggested approach to using tomcat (and open source software in
general) is

1) download, install, try it out
2) if you get an error, google for the error message. 99.99% of the
time, somebody else will have hit the problem and commented about it
somewhere
3) if you can't fix it by yourself, ask the list

You seem to be asking "for this piece of software (that I won't tell
you anything about), how should I configure tomcat?" Nobody can answer
that question. We don't know the software - you haven't told us. We
don't know the hardware. We don't know the load.

Even if people did know the above, the answer is always to try your
suggested load using your hardware, and see what happens. The defaults
generally work very well in a broad range of situations. That's why
they are the defaults. Perhaps you will need to tweak some settings,
but you need to have a baseline, and method to test what effect each
change actually has.

HTH

Chris

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







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

Re: Max Threads - Worker Threads clarification

2012-10-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Charles,

On 10/23/12 3:01 PM, Charles Richard wrote:
> I am doing load testing.  I'm trying to ensure that our production
> site can handle as much traffic as it possibly can and I'm trying
> to make sure I refine my performance tuning skills on a test
> environment. Here are some more specifics:
> 
> Mod_jk is 1.2.31

That's a few versions behind. You might want to upgrade if you have
the chance.

> Settings in workers.properties:
> 
> worker.worker1.type=ajp13 worker.worker1.host=localhost 
> worker.worker1.port=8009 
> worker.worker1.connection_pool_timeout=180

Do you have a parallel timeout in your  on the Java side?

> worker.worker1.lbfactor=1

If you aren't load-balancing, then this obviously doesn't have any effect.

Also note that all of your settings are the defaults except for the
connection_pool_timeout.

If you end up setting up load-balancing, you might want to look into
using a "template" worker.

> I'm not sure how many threads would be good to handle how many
> connections :)

That depends upon response time under load. If you want to be able to
handle 100 simultaneous requests, you need to make sure that you have
enough threads to handle that, and that the hardware can get the work
done that fast.

> I'm just trying to understand more of the process so i can start 
> fine-tuning where I can. Right now, I'm trying to understand why
> Tomcat could not respond anymore if threads are still waiting but
> maybe with the server being cpu bound as it is, it's just taking a
> long long time and everything is as could be "expected".

That's the first time I heard you say "Tomcat could not response
anymore". Is that actually happening?

If you don't have the same connection pool timeout on both ends of the
AJP connection, then you'll tie-up all your Tomcat request processing
threads waiting on connections that will never receive any data, and
you'll end up deadlocked. If you are load-testing, you might never
notice since your AJP connections should all be getting exercise
fairly regularly, and the 180-second timeout should never happen.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlCHADMACgkQ9CaO5/Lv0PDo8wCeOKV2nnmNv3Vyz3rIECVb90dM
q0IAnRLBpXFJF8WcDEc3YaKCALHmbjpv
=sbpD
-END PGP SIGNATURE-

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



Re: any servlets to implement sort of a google-play-like functionality for android and other types of mobile devices?

2012-10-23 Thread Albretch Mueller
> Using Java Web Start does not require any Java on the backend
> whatsoever. You can serve a Java Web Start app from a vanilla IIS with
> no dynamic content at all. So, Tomcat itself has really nothing to do
> with it all.
~
 Not quite. The JNLP/java did most of the work itself, but if you use
advanced server support with elaborate versioning descriptors you have
to declare and handle the logical (URL) to physical (file system)
mapping, declare new mime types for jardiff functionality, handle
Locale related issues, ...
~
 If using Java Web Start would not require any Java on the back end
whatsoever, then Marinilli on this JNLP wouldn't have dedicated a
chapter to it ;-)
~
> Is he asking if Tomcat has an AppStore for JNLP apps?
~
>> I *think* he's asking if anybody has started a project to create an app
>> store that runs under TC, as an open-source project.  I.E. he's looking
>> for code to make his own app store.
~
> For JNLP.  Right...
~
 No exactly. I do have two things in mind. I have developed a full
blown application based on Swing (its features are a bit too
complicated for a mobile device) and there are some light
functionalities with a nails and thumbs kind of GUI for client mobile
devices
~
 I have noticed (and confirmed by your reactions) that this is
something that most people are not interested in
~
 lbrtchx

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



Re: insfrastructure set list

2012-10-23 Thread Daniel Barcellos
Hi Chris,

you've said: "I think that you are trying to use this list incorrectly...".

Thank you for your patience in advising me how should I use this list. I'm
pretty sure you're right, but if I'm here that's because I'm not able to
find any good solution in the google's ocean.

I was wondering if based on your experience that is possible to setup my
enviroment since I was already faced some issues due to miss configuration
or even because my server just got hanged by consuming all it thread and so
on.

Hi Christopher,

It's a chart solution that uses Primefaces componenet suit.

I was wondering that based in the fact that this app will have to handle
100 users over it. And I was wondering that since i'm not sure about the
hardware I have on the client side, I'd like to know
if there's a good setup like how many virtual memory do I need to use, how
many threads do I need to set... stuffs like that.

I'm pretty sure that someone on this list already faced some kind of
scenario and might share his knoledge...

Imagine this simple examplo... we used to develop app for Oracle forms that
runs over a oracle application server. If you need to install it you should
obey a big list of requirement
so that every thing under its control will run ok.
Now we need to use and deploy software over Tomcat that is basically a free
server. Where can I find those requirements? I'm not able to find them on
google because there's a lot of
specif case documents and posts...

Cheers,


2012/10/23 chris derham 

> > Today we're about to deploy a simple app that is basically a charts
> > solution that will run over Tomcat 7.X. Well till there everything is all
> > right. But since I'm not a heavy user of Tomcat I'm not so sure what
> could
> > that be the best settup for my app for not have problems in a first sight
> > by a miss configuration.
> >
> > This app will have 100 concurrent users and in terms of hardware I'm not
> > sure what they will give us.
> >
> > Is that possible that you guys share some experience and minimal setup
> due
> > to those above scenario?
> >
> > Thanks!!!
>
> Daniel,
>
> I think that you are trying to use this list incorrectly. If everyone
> that wanted to use tomcat emailed the list, none of the people who
> answer questions on the list would be able to get any work done. They
> are only answering the questions posted on this list in their own free
> time. Nobody is paid to answer questions on this list.
>
> The suggested approach to using tomcat (and open source software in
> general) is
>
> 1) download, install, try it out
> 2) if you get an error, google for the error message. 99.99% of the
> time, somebody else will have hit the problem and commented about it
> somewhere
> 3) if you can't fix it by yourself, ask the list
>
> You seem to be asking "for this piece of software (that I won't tell
> you anything about), how should I configure tomcat?" Nobody can answer
> that question. We don't know the software - you haven't told us. We
> don't know the hardware. We don't know the load.
>
> Even if people did know the above, the answer is always to try your
> suggested load using your hardware, and see what happens. The defaults
> generally work very well in a broad range of situations. That's why
> they are the defaults. Perhaps you will need to tweak some settings,
> but you need to have a baseline, and method to test what effect each
> change actually has.
>
> HTH
>
> Chris
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Max Threads - Worker Threads clarification

2012-10-23 Thread Mark Eggers

On 10/23/2012 12:01 PM, Charles Richard wrote:

Hi,

I am doing load testing.  I'm trying to ensure that our production site can
handle as much traffic as it possibly can and I'm trying to make sure I
refine my performance tuning skills on a test environment. Here are some
more specifics:

Mod_jk is 1.2.31
Settings in workers.properties:

worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
worker.worker1.connection_pool_timeout=180
worker.worker1.lbfactor=1



A quick note here on your AJP workers.properties

the worker.worker1.connection_pool_timeout (in seconds) should match the 
connectionTimeout (in milliseconds) attribute for your AJP Connector 
element in server.xml. By default, the connectionTimeout is infinite (no 
timeout).


In recent versions of the AJP connector, there is a sample 
workers.properties file in the conf directory. There are a lot of good 
comments in that file.


The latest version is 1.2.37, and you might investigate using that.

Read the following changelog for information:

http://tomcat.apache.org/connectors-doc/miscellaneous/changelog.html


I'm not sure how many threads would be good to handle how many connections
:)  I'm just trying to understand more of the process so i can start
fine-tuning where I can. Right now, I'm trying to understand why Tomcat
could not respond anymore if threads are still waiting but maybe with the
server being cpu bound as it is, it's just taking a long long time and
everything is as could be "expected".

Cheers,
Charles

On Tue, Oct 23, 2012 at 3:50 PM, Christopher Schultz <
ch...@christopherschultz.net> wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Charles,

On 10/23/12 10:45 AM, Charles Richard wrote:

I'm testing performance of our Java application in Tomcat (6.0.30)
and we have maxThreads set to 750.  I noticed that when i did a
netstat -an | grep my_ajp_port, i saw around 860 connections.


In what TCP state were they? If you are doing load-testing, you might
see a lot in TIME_WAIT or TIME_WAIT2 as they (slowly) shutdown.

What is your connector configuration? Be specific.


Wanting to know what was happening, I did a jstack of my tomcat pid
and inspected the track with Samurai.

I was expecting to see > 750 Worker Threads in my stack since some
extra worker threads are needed by Tomcat.  What i saw was around
60 worker threads in the trace.


Sounds great: Tomcat can handle your 750 connections with only 60
threads. Sounds good, no?

- -chris


. . . . just my two cents
/mde/


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



Re: any servlets to implement sort of a google-play-like functionality for android and other types of mobile devices?

2012-10-23 Thread Pid
On 23/10/2012 20:13, David kerber wrote:
> On 10/23/2012 2:58 PM, Pid wrote:
>> On 23/10/2012 12:28, David kerber wrote:
>>> On 10/23/2012 4:39 AM, Albretch Mueller wrote:
> Unless you are talking about setting up some kind of "app store" and
> using Tomcat to do that? but in such a case, the issue would not be
> about Tomcat, but about creating an "app store webapp" running under
> Tomcat. Or?
 ~
Exactly! Where is an (or the?) "app store webapp" running under
 Tomcat?
>>>
>>> ...
>>>
 ~
So, again, where is the "app store webapp" running under Tomcat,
 Jetty, or any other servlet container?
 ~
Are we starting such a project?
 ~
lbrtchx
>>>
>>> I'm not; are you?
>>
>> Is he asking if Tomcat has an AppStore for JNLP apps?
> 
> I *think* he's asking if anybody has started a project to create an app
> store that runs under TC, as an open-source project.  I.E. he's looking
> for code to make his own app store.

For JNLP.  Right...


p


-- 

[key:62590808]



signature.asc
Description: OpenPGP digital signature


Re: any servlets to implement sort of a google-play-like functionality for android and other types of mobile devices?

2012-10-23 Thread David kerber

On 10/23/2012 2:58 PM, Pid wrote:

On 23/10/2012 12:28, David kerber wrote:

On 10/23/2012 4:39 AM, Albretch Mueller wrote:

Unless you are talking about setting up some kind of "app store" and
using Tomcat to do that? but in such a case, the issue would not be
about Tomcat, but about creating an "app store webapp" running under
Tomcat. Or?

~
   Exactly! Where is an (or the?) "app store webapp" running under Tomcat?


...


~
   So, again, where is the "app store webapp" running under Tomcat,
Jetty, or any other servlet container?
~
   Are we starting such a project?
~
   lbrtchx


I'm not; are you?


Is he asking if Tomcat has an AppStore for JNLP apps?


I *think* he's asking if anybody has started a project to create an app 
store that runs under TC, as an open-source project.  I.E. he's looking 
for code to make his own app store.



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



Re: Max Threads - Worker Threads clarification

2012-10-23 Thread Charles Richard
I'll take Pid's suggestion of trying VisualVM and I've been using Jprofiler
but don't think i was using it correctly.  I'll use those and report later.

Thanks for all the help, starting to feel like I'm getting somewhere!

Cheers,
Charles

On Tue, Oct 23, 2012 at 3:53 PM, Pid  wrote:

> On 23/10/2012 19:46, Charles Richard wrote:
> > With wc removed, it looked like the following:
> >
> > tcp0  0 127.0.0.1:8009  127.0.0.1:37744
> > ESTABLISHED
> > tcp0  0 127.0.0.1:8009  127.0.0.1:36976
> > ESTABLISHED
> > tcp0  0 127.0.0.1:8009  127.0.0.1:35695
> > ESTABLISHED
> > tcp0  0 127.0.0.1:8009  127.0.0.1:39022
> > ESTABLISHED
> >
> > At the exception of a few close_wait and a few fin_wait2.
> >
> > If in my jstack analysis, all worker threads are running and all GC
> threads
> > are running and my server was CPU bound, would i be correct in assuming
> > Garbage collection was killing tomcat?  Tomcat would eventually not
> respond
> > anymore which I was trying to understand why as my jstack dump shows
> > TP-Processor threads waiting.
>
> One thread dump from jstack is interesting but not particularly
> informative.
>
> If you see the same in a series of thread dumps, taken a few seconds
> apart then you can tell what's happening.
>
> Alternatively... like Daniel suggested, you do all of the above and more
> in a nice shiny GUI, where you don't have to guess what the threads are
> doing & where you can see a GC graph alongside at the same time.
>
> We _strongly_ recommend getting JMX set up & using VisualVM to see
> what's happening...
>
>
> p
>
>
> > Thanks!
> >
> > Cheers,
> > Charles
> >
> > On Tue, Oct 23, 2012 at 2:22 PM, Daniel Mikusa 
> wrote:
> >
> >> On Oct 23, 2012, at 12:10 PM, Charles Richard wrote:
> >>
> >>> Hi,
> >>>
> >>> Thanks for the reply!
> >>>
> >>> The command was the following:
> >>>
> >>> [root@mysandbox tmp]# netstat -an | grep 8009 | wc
> >>>8565136   76184
> >>
> >> What output do you get if you remove the "wc" command?
> >>
> >>
> >>> How should i interpret this?  I thought this meant that 856 threads
> were
> >>> open while my MaxThreads is 750.
> >>
> >> This is not going to accurately give you a count of thread use.  Don't
> use
> >> this command for that purpose.  If you want to see thread usage, look at
> >> jvisualvm, jstack, or jconsole.  All of these will give you accurate
> counts.
> >>
> >>
> >>>  I'm trying to understand if all my
> >>> workerThreads are busy (hence trying the jstack dump) and then if they
> >> are,
> >>> not sure how I would do this but try to figure out on what they're
> busy.
> >>
> >> To figure out what is going on you have a couple choices:
> >>
> >> 1.) Use a profiler.  YourKit is a good one, but not free.
> >> 2.) Use "top -H" in combination with jstack (or kill -3).
> >>
> >> In most cases a profiler is the best way to go.  The top method is
> mainly
> >> useful when something is consistently consuming a large portion of the
> CPU.
> >>
> >> Dan
> >>
> >>
> >>
> >>> My OS is CentOS 5.8 for my sandbox and Red Hat 5.8 for my production
> >> boxes.
> >>>
> >>> Thanks,
> >>> Charles
> >>>
> >>> On Tue, Oct 23, 2012 at 12:25 PM, Daniel Mikusa 
> >> wrote:
> >>>
> >> Hi,
> >>
> >> I'm testing performance of our Java application in Tomcat (6.0.30)
> and
>  we
> >> have maxThreads set to 750.  I noticed that when i did a netstat
> -an |
>  grep
> >> my_ajp_port, i saw around 860 connections.
> 
>  That does not necessarily mean that you have 860 threads running.
>  What
>  are you trying to determine by running this command?  If you want to
> see
>  the number of threads, use jconsole, jvisualvm or jstack.
> 
>  Also, if you include the output of "netstat -an | grep my_ajp_port"
> and
>  what OS you are running, someone on the list might be able to better
>  explain the output from the command.
> 
> 
> >> I was expecting to see > 750 Worker Threads in my stack since some
> >> extra
> >> worker threads are needed by Tomcat.  What i saw was around 60
> worker
> >> threads in the trace.
> 
>  This would be the correct number of threads in use.
> 
>  Dan
> 
> 
> >>
> >> Any suggestions/ideas on why that would be?
> >>
> >> Cheers,
> >> Charles
> >>
> 
> 
>  -
>  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>  For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> >> For additional commands, e-mail: users-h...@tomcat.apache.org
> >>
> >>
> >
>
>
> --
>
> [key:62590808]
>
>


Re: Max Threads - Worker Threads clarification

2012-10-23 Thread Charles Richard
Hi,

I am doing load testing.  I'm trying to ensure that our production site can
handle as much traffic as it possibly can and I'm trying to make sure I
refine my performance tuning skills on a test environment. Here are some
more specifics:

Mod_jk is 1.2.31
Settings in workers.properties:

worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
worker.worker1.connection_pool_timeout=180
worker.worker1.lbfactor=1

I'm not sure how many threads would be good to handle how many connections
:)  I'm just trying to understand more of the process so i can start
fine-tuning where I can. Right now, I'm trying to understand why Tomcat
could not respond anymore if threads are still waiting but maybe with the
server being cpu bound as it is, it's just taking a long long time and
everything is as could be "expected".

Cheers,
Charles

On Tue, Oct 23, 2012 at 3:50 PM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Charles,
>
> On 10/23/12 10:45 AM, Charles Richard wrote:
> > I'm testing performance of our Java application in Tomcat (6.0.30)
> > and we have maxThreads set to 750.  I noticed that when i did a
> > netstat -an | grep my_ajp_port, i saw around 860 connections.
>
> In what TCP state were they? If you are doing load-testing, you might
> see a lot in TIME_WAIT or TIME_WAIT2 as they (slowly) shutdown.
>
> What is your connector configuration? Be specific.
>
> > Wanting to know what was happening, I did a jstack of my tomcat pid
> > and inspected the track with Samurai.
> >
> > I was expecting to see > 750 Worker Threads in my stack since some
> > extra worker threads are needed by Tomcat.  What i saw was around
> > 60 worker threads in the trace.
>
> Sounds great: Tomcat can handle your 750 connections with only 60
> threads. Sounds good, no?
>
> - -chris
> -BEGIN PGP SIGNATURE-
> Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
>
> iEYEARECAAYFAlCG5vAACgkQ9CaO5/Lv0PCafgCfbB754nPjG5UxgHveQS31UwEP
> +hcAnRZjEB16Rf9fNdYgOxnpkHMc51xW
> =ElVx
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Tomcat 6.0 - JNDI resource caching over virtual hosts

2012-10-23 Thread Pid
On 23/10/2012 16:55, Jan Kostelansky wrote:
> I am using Tomcat 6.0.18 deployed as web service on Windows XP SP3.
> 
>  
> 
> I created additional Host element in conf/server.xml, so I have two
> virtual hosts: localhost (default) and janko
> 
> 
> 
> 
> 
>  directory="logs"  
> 
>prefix="its_access_log." suffix=".txt" pattern="common"
> resolveHosts="false"/>
> 
> 
> 
>  
> 
> I deployed the same web applications in both hosts. The first web
> application is main, the other one is hypersonic database as storage for
> the web application. The main web application defines access to
> hypersonic database as resource.
> 
> Then localhost web application points to hypersonic listening on port
> 9002
> 
>  
> name="jdbc/profile" 
> 
> auth="Container" 
> 
> uniqueResourceName="jdbc/profile"
> 
> type="com.atomikos.jdbc.nonxa.NonXADataSourceBean"
> 
> factory="org.apache.naming.factory.BeanFactory"
> 
> connectionTimeout="30"
> 
> poolSize="3"
> 
> user="sa" 
> 
> password=""
> 
> driverClassName="org.hsqldb.jdbcDriver"
> 
> url="jdbc:hsqldb:hsql://localhost:9002" 
> 
> />
> 
> Then janko web application points to hypersonic listening on port 9003
> 
>  
> name="jdbc/profile" 
> 
> auth="Container" 
> 
> uniqueResourceName="jdbc/profile"
> 
> type="com.atomikos.jdbc.nonxa.NonXADataSourceBean"
> 
> factory="org.apache.naming.factory.BeanFactory"
> 
> connectionTimeout="30"
> 
> poolSize="3"
> 
> user="sa" 
> 
> password=""
> 
> driverClassName="org.hsqldb.jdbcDriver"
> 
> url="jdbc:hsqldb:hsql://janko:9003" 
> 
> />
> 
> The deployment descriptors are defined in conf/Catalina/localhost and
> conf/Catalina/janko folders. docBase points outside of tomcat_home.
> 
>  
> 
> However when accessing both web applications only one data source is
> used by both web applications depending which one is used first. It
> looks to me that JNDI name jdbc/profile is shared across web
> applications.

That's because you can't give the same JNDI name to two different DBs.
What about trying to use two different names for the resources?


p


> The application uses log4j for logging. Before both web applications
> were deployed under the same context name. The side effect was that both
> applications logged to the same file. When I renamed web application on
> the janko virtual host, the log4j issue was solved. Looks like the same
> log4j class instance was used for applications with the same context
> name.
> 
>  
> 
> I do not use global resources in server.xml. Resources are defined in
> application context file only. Based on documentation resource elements
> defined in context is private to that context only.
> 
>  
> 
> Thank you in advance for any help,
> 
> Jan
> 
> 


-- 

[key:62590808]



signature.asc
Description: OpenPGP digital signature


Re: any servlets to implement sort of a google-play-like functionality for android and other types of mobile devices?

2012-10-23 Thread Pid
On 23/10/2012 12:28, David kerber wrote:
> On 10/23/2012 4:39 AM, Albretch Mueller wrote:
>>> Unless you are talking about setting up some kind of "app store" and
>>> using Tomcat to do that? but in such a case, the issue would not be
>>> about Tomcat, but about creating an "app store webapp" running under
>>> Tomcat. Or?
>> ~
>>   Exactly! Where is an (or the?) "app store webapp" running under Tomcat?
> 
> ...
> 
>> ~
>>   So, again, where is the "app store webapp" running under Tomcat,
>> Jetty, or any other servlet container?
>> ~
>>   Are we starting such a project?
>> ~
>>   lbrtchx
> 
> I'm not; are you?

Is he asking if Tomcat has an AppStore for JNLP apps?

:/


p



-- 

[key:62590808]



signature.asc
Description: OpenPGP digital signature


Re: Tomcat forwarding example...

2012-10-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jeff,

On 10/23/12 2:40 PM, Jeff wrote:
> So instead we are moving to supporting multiple versions/endpoints
> within the same WAR.  However, during the transition, this causes
> the actual service URL to change since the WAR/Project name is
> changing from a version-specific name to a more generic one (see
> sample below).

Sounds like you need to do one more long-form release to get your CD
pipeline installed *before* you start replacing your old webapp
deployments with redirects to it.

> To summarize our old vs new setup:
> 
> OLD: (no redirection/each is a separate project/WAR) 
> http://hostname/*Service_v1*/Port_v1... 
> http://hostname/*Service_v2*/Port_v2...
> 
> NEW: Single project/war: http://hostname/*Service*/Port_v1... 
> http://hostname/*Service*/Port_v2...
> 
> Redirects http://hostname/Service_v1/Port_v1/*
> redirecting/forwarding to: http://hostname/Service/Port_v1... 
> http://hostname/Service_v2/Port_v2*  redirecting/forwarding to: 
> http://hostname/Service/Port_v2...

What is the url-rewrite configuration you have already tried? This
should *definitey* be possible to do with a fairly simple url-rewrite
configuration.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlCG6J4ACgkQ9CaO5/Lv0PDUKgCghRDtgcBOr+W2ADiMg1WRKJUo
R7kAniIVnDwHAQBwR8yfmdB6VysLpJq3
=ZdE9
-END PGP SIGNATURE-

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



Re: Max Threads - Worker Threads clarification

2012-10-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Charles,

(Sorry for posting before I read all the follow-ups).

On 10/23/12 2:46 PM, Charles Richard wrote:
> With wc removed, it looked like the following:
> 
> tcp0  0 127.0.0.1:8009  127.0.0.1:37744 
> ESTABLISHED tcp0  0 127.0.0.1:8009
> 127.0.0.1:36976 ESTABLISHED tcp0  0 127.0.0.1:8009
> 127.0.0.1:35695 ESTABLISHED tcp0  0 127.0.0.1:8009
> 127.0.0.1:39022 ESTABLISHED
> 
> At the exception of a few close_wait and a few fin_wait2.

How many? You said wc returned more than 800. How many of those were
not ESTABLISHED?

I'd still like to see your  configuration. Also, are you
using APR/tcnative?

Also, how are you doing your load tests? Be specific.

> If in my jstack analysis, all worker threads are running and all GC
> threads are running and my server was CPU bound, would i be correct
> in assuming Garbage collection was killing tomcat?  Tomcat would
> eventually not respond anymore which I was trying to understand why
> as my jstack dump shows TP-Processor threads waiting.

Processing threads can be waiting for lots of reasons. How big are the
requests you are sending?

Depending upon how you got the thread dump, it may appear that threads
are runnable when they are truly idle.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlCG59QACgkQ9CaO5/Lv0PADawCfUkUJSxh6rUZIL67lzW4JtPv/
a7oAoJo7tQXlz32qDLmuwwqIqbRpMHqD
=gSj3
-END PGP SIGNATURE-

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



Re: Max Threads - Worker Threads clarification

2012-10-23 Thread Pid
On 23/10/2012 19:46, Charles Richard wrote:
> With wc removed, it looked like the following:
> 
> tcp0  0 127.0.0.1:8009  127.0.0.1:37744
> ESTABLISHED
> tcp0  0 127.0.0.1:8009  127.0.0.1:36976
> ESTABLISHED
> tcp0  0 127.0.0.1:8009  127.0.0.1:35695
> ESTABLISHED
> tcp0  0 127.0.0.1:8009  127.0.0.1:39022
> ESTABLISHED
> 
> At the exception of a few close_wait and a few fin_wait2.
> 
> If in my jstack analysis, all worker threads are running and all GC threads
> are running and my server was CPU bound, would i be correct in assuming
> Garbage collection was killing tomcat?  Tomcat would eventually not respond
> anymore which I was trying to understand why as my jstack dump shows
> TP-Processor threads waiting.

One thread dump from jstack is interesting but not particularly informative.

If you see the same in a series of thread dumps, taken a few seconds
apart then you can tell what's happening.

Alternatively... like Daniel suggested, you do all of the above and more
in a nice shiny GUI, where you don't have to guess what the threads are
doing & where you can see a GC graph alongside at the same time.

We _strongly_ recommend getting JMX set up & using VisualVM to see
what's happening...


p


> Thanks!
> 
> Cheers,
> Charles
> 
> On Tue, Oct 23, 2012 at 2:22 PM, Daniel Mikusa  wrote:
> 
>> On Oct 23, 2012, at 12:10 PM, Charles Richard wrote:
>>
>>> Hi,
>>>
>>> Thanks for the reply!
>>>
>>> The command was the following:
>>>
>>> [root@mysandbox tmp]# netstat -an | grep 8009 | wc
>>>8565136   76184
>>
>> What output do you get if you remove the "wc" command?
>>
>>
>>> How should i interpret this?  I thought this meant that 856 threads were
>>> open while my MaxThreads is 750.
>>
>> This is not going to accurately give you a count of thread use.  Don't use
>> this command for that purpose.  If you want to see thread usage, look at
>> jvisualvm, jstack, or jconsole.  All of these will give you accurate counts.
>>
>>
>>>  I'm trying to understand if all my
>>> workerThreads are busy (hence trying the jstack dump) and then if they
>> are,
>>> not sure how I would do this but try to figure out on what they're busy.
>>
>> To figure out what is going on you have a couple choices:
>>
>> 1.) Use a profiler.  YourKit is a good one, but not free.
>> 2.) Use "top -H" in combination with jstack (or kill -3).
>>
>> In most cases a profiler is the best way to go.  The top method is mainly
>> useful when something is consistently consuming a large portion of the CPU.
>>
>> Dan
>>
>>
>>
>>> My OS is CentOS 5.8 for my sandbox and Red Hat 5.8 for my production
>> boxes.
>>>
>>> Thanks,
>>> Charles
>>>
>>> On Tue, Oct 23, 2012 at 12:25 PM, Daniel Mikusa 
>> wrote:
>>>
>> Hi,
>>
>> I'm testing performance of our Java application in Tomcat (6.0.30) and
 we
>> have maxThreads set to 750.  I noticed that when i did a netstat -an |
 grep
>> my_ajp_port, i saw around 860 connections.

 That does not necessarily mean that you have 860 threads running.  What
 are you trying to determine by running this command?  If you want to see
 the number of threads, use jconsole, jvisualvm or jstack.

 Also, if you include the output of "netstat -an | grep my_ajp_port" and
 what OS you are running, someone on the list might be able to better
 explain the output from the command.


>> I was expecting to see > 750 Worker Threads in my stack since some
>> extra
>> worker threads are needed by Tomcat.  What i saw was around 60 worker
>> threads in the trace.

 This would be the correct number of threads in use.

 Dan


>>
>> Any suggestions/ideas on why that would be?
>>
>> Cheers,
>> Charles
>>


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


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


-- 

[key:62590808]



signature.asc
Description: OpenPGP digital signature


Re: Max Threads - Worker Threads clarification

2012-10-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Charles,

On 10/23/12 10:45 AM, Charles Richard wrote:
> I'm testing performance of our Java application in Tomcat (6.0.30)
> and we have maxThreads set to 750.  I noticed that when i did a
> netstat -an | grep my_ajp_port, i saw around 860 connections.

In what TCP state were they? If you are doing load-testing, you might
see a lot in TIME_WAIT or TIME_WAIT2 as they (slowly) shutdown.

What is your connector configuration? Be specific.

> Wanting to know what was happening, I did a jstack of my tomcat pid
> and inspected the track with Samurai.
> 
> I was expecting to see > 750 Worker Threads in my stack since some
> extra worker threads are needed by Tomcat.  What i saw was around
> 60 worker threads in the trace.

Sounds great: Tomcat can handle your 750 connections with only 60
threads. Sounds good, no?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlCG5vAACgkQ9CaO5/Lv0PCafgCfbB754nPjG5UxgHveQS31UwEP
+hcAnRZjEB16Rf9fNdYgOxnpkHMc51xW
=ElVx
-END PGP SIGNATURE-

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



RE: Tomcat forwarding example...

2012-10-23 Thread Caldarale, Charles R
> From: Jeff [mailto:predato...@gmail.com] 
> Subject: Tomcat forwarding example...

> So instead we are moving to supporting multiple versions/endpoints 
> within the same WAR.

That sounds like a rather shaky proposition.

> However, during the transition, this causes the actual service URL 
> to change since the WAR/Project name is changing from a version-
> specific name to a more generic one (see sample below).

If you would consider moving up to Tomcat 7, you might want to see if parallel 
deployment would fit your needs better.

http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Parallel_deployment

 - Chuck


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


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



Re: Max Threads - Worker Threads clarification

2012-10-23 Thread Charles Richard
With wc removed, it looked like the following:

tcp0  0 127.0.0.1:8009  127.0.0.1:37744
ESTABLISHED
tcp0  0 127.0.0.1:8009  127.0.0.1:36976
ESTABLISHED
tcp0  0 127.0.0.1:8009  127.0.0.1:35695
ESTABLISHED
tcp0  0 127.0.0.1:8009  127.0.0.1:39022
ESTABLISHED

At the exception of a few close_wait and a few fin_wait2.

If in my jstack analysis, all worker threads are running and all GC threads
are running and my server was CPU bound, would i be correct in assuming
Garbage collection was killing tomcat?  Tomcat would eventually not respond
anymore which I was trying to understand why as my jstack dump shows
TP-Processor threads waiting.

Thanks!

Cheers,
Charles

On Tue, Oct 23, 2012 at 2:22 PM, Daniel Mikusa  wrote:

> On Oct 23, 2012, at 12:10 PM, Charles Richard wrote:
>
> > Hi,
> >
> > Thanks for the reply!
> >
> > The command was the following:
> >
> > [root@mysandbox tmp]# netstat -an | grep 8009 | wc
> >8565136   76184
>
> What output do you get if you remove the "wc" command?
>
>
> > How should i interpret this?  I thought this meant that 856 threads were
> > open while my MaxThreads is 750.
>
> This is not going to accurately give you a count of thread use.  Don't use
> this command for that purpose.  If you want to see thread usage, look at
> jvisualvm, jstack, or jconsole.  All of these will give you accurate counts.
>
>
> >  I'm trying to understand if all my
> > workerThreads are busy (hence trying the jstack dump) and then if they
> are,
> > not sure how I would do this but try to figure out on what they're busy.
>
> To figure out what is going on you have a couple choices:
>
> 1.) Use a profiler.  YourKit is a good one, but not free.
> 2.) Use "top -H" in combination with jstack (or kill -3).
>
> In most cases a profiler is the best way to go.  The top method is mainly
> useful when something is consistently consuming a large portion of the CPU.
>
> Dan
>
>
>
> > My OS is CentOS 5.8 for my sandbox and Red Hat 5.8 for my production
> boxes.
> >
> > Thanks,
> > Charles
> >
> > On Tue, Oct 23, 2012 at 12:25 PM, Daniel Mikusa 
> wrote:
> >
>  Hi,
> 
>  I'm testing performance of our Java application in Tomcat (6.0.30) and
> >> we
>  have maxThreads set to 750.  I noticed that when i did a netstat -an |
> >> grep
>  my_ajp_port, i saw around 860 connections.
> >>
> >> That does not necessarily mean that you have 860 threads running.  What
> >> are you trying to determine by running this command?  If you want to see
> >> the number of threads, use jconsole, jvisualvm or jstack.
> >>
> >> Also, if you include the output of "netstat -an | grep my_ajp_port" and
> >> what OS you are running, someone on the list might be able to better
> >> explain the output from the command.
> >>
> >>
>  I was expecting to see > 750 Worker Threads in my stack since some
> extra
>  worker threads are needed by Tomcat.  What i saw was around 60 worker
>  threads in the trace.
> >>
> >> This would be the correct number of threads in use.
> >>
> >> Dan
> >>
> >>
> 
>  Any suggestions/ideas on why that would be?
> 
>  Cheers,
>  Charles
> 
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> >> For additional commands, e-mail: users-h...@tomcat.apache.org
> >>
> >>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: insfrastructure set list

2012-10-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Daniel,

On 10/23/12 9:52 AM, Daniel Barcellos wrote:
> Today we're about to deploy a simple app that is basically a
> charts solution that will run over Tomcat 7.X.

Like JasperReports Server?

> This app will have 100 concurrent users and in terms of hardware
> I'm not sure what they will give us.

So do you want to know what minimal system requirements you should
give to someone, or do you want to know what you'll be able to handle
given a particular piece of hardware? You have to have /one/ fixed
variable in your equation ;)

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlCG3RwACgkQ9CaO5/Lv0PD9IwCfddmjyYA8+qqqTV+1Y9yxVUUk
PiUAnA+BZPBwiZ79mPxivzZTd1BRRuNI
=hIqz
-END PGP SIGNATURE-

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



Re: Max Threads - Worker Threads clarification

2012-10-23 Thread Shanti Suresh
Hi Charles,

If you want to really see how many are busy, perhaps qualify the command as:

netstat -an | grep 8009 | grep ESTABLISH | wc -l

Some connections may be in CLOSE_WAIT or TIME_WAIT states, waiting to be
closed.

Thanks.

   -Shanti

On Tue, Oct 23, 2012 at 12:10 PM, Charles Richard <
charle...@thelearningbar.com> wrote:

> Hi,
>
> Thanks for the reply!
>
> The command was the following:
>
> [root@mysandbox tmp]# netstat -an | grep 8009 | wc
> 8565136   76184
>
> How should i interpret this?  I thought this meant that 856 threads were
> open while my MaxThreads is 750.  I'm trying to understand if all my
> workerThreads are busy (hence trying the jstack dump) and then if they are,
> not sure how I would do this but try to figure out on what they're busy.
>
> My OS is CentOS 5.8 for my sandbox and Red Hat 5.8 for my production boxes.
>
> Thanks,
> Charles
>
> On Tue, Oct 23, 2012 at 12:25 PM, Daniel Mikusa 
> wrote:
>
> > >> Hi,
> > >>
> > >> I'm testing performance of our Java application in Tomcat (6.0.30) and
> > we
> > >> have maxThreads set to 750.  I noticed that when i did a netstat -an |
> > grep
> > >> my_ajp_port, i saw around 860 connections.
> >
> > That does not necessarily mean that you have 860 threads running.  What
> > are you trying to determine by running this command?  If you want to see
> > the number of threads, use jconsole, jvisualvm or jstack.
> >
> > Also, if you include the output of "netstat -an | grep my_ajp_port" and
> > what OS you are running, someone on the list might be able to better
> > explain the output from the command.
> >
> >
> > >> I was expecting to see > 750 Worker Threads in my stack since some
> extra
> > >> worker threads are needed by Tomcat.  What i saw was around 60 worker
> > >> threads in the trace.
> >
> > This would be the correct number of threads in use.
> >
> > Dan
> >
> >
> > >>
> > >> Any suggestions/ideas on why that would be?
> > >>
> > >> Cheers,
> > >> Charles
> > >>
> >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> > For additional commands, e-mail: users-h...@tomcat.apache.org
> >
> >
>


Re: insfrastructure set list

2012-10-23 Thread chris derham
> Today we're about to deploy a simple app that is basically a charts
> solution that will run over Tomcat 7.X. Well till there everything is all
> right. But since I'm not a heavy user of Tomcat I'm not so sure what could
> that be the best settup for my app for not have problems in a first sight
> by a miss configuration.
>
> This app will have 100 concurrent users and in terms of hardware I'm not
> sure what they will give us.
>
> Is that possible that you guys share some experience and minimal setup due
> to those above scenario?
>
> Thanks!!!

Daniel,

I think that you are trying to use this list incorrectly. If everyone
that wanted to use tomcat emailed the list, none of the people who
answer questions on the list would be able to get any work done. They
are only answering the questions posted on this list in their own free
time. Nobody is paid to answer questions on this list.

The suggested approach to using tomcat (and open source software in general) is

1) download, install, try it out
2) if you get an error, google for the error message. 99.99% of the
time, somebody else will have hit the problem and commented about it
somewhere
3) if you can't fix it by yourself, ask the list

You seem to be asking "for this piece of software (that I won't tell
you anything about), how should I configure tomcat?" Nobody can answer
that question. We don't know the software - you haven't told us. We
don't know the hardware. We don't know the load.

Even if people did know the above, the answer is always to try your
suggested load using your hardware, and see what happens. The defaults
generally work very well in a broad range of situations. That's why
they are the defaults. Perhaps you will need to tweak some settings,
but you need to have a baseline, and method to test what effect each
change actually has.

HTH

Chris

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



Re: Max Threads - Worker Threads clarification

2012-10-23 Thread Daniel Mikusa
On Oct 23, 2012, at 12:10 PM, Charles Richard wrote:

> Hi,
> 
> Thanks for the reply!
> 
> The command was the following:
> 
> [root@mysandbox tmp]# netstat -an | grep 8009 | wc
>8565136   76184

What output do you get if you remove the "wc" command?


> How should i interpret this?  I thought this meant that 856 threads were
> open while my MaxThreads is 750.

This is not going to accurately give you a count of thread use.  Don't use this 
command for that purpose.  If you want to see thread usage, look at jvisualvm, 
jstack, or jconsole.  All of these will give you accurate counts.


>  I'm trying to understand if all my
> workerThreads are busy (hence trying the jstack dump) and then if they are,
> not sure how I would do this but try to figure out on what they're busy.

To figure out what is going on you have a couple choices:

1.) Use a profiler.  YourKit is a good one, but not free.
2.) Use "top -H" in combination with jstack (or kill -3).  

In most cases a profiler is the best way to go.  The top method is mainly 
useful when something is consistently consuming a large portion of the CPU.

Dan



> My OS is CentOS 5.8 for my sandbox and Red Hat 5.8 for my production boxes.
> 
> Thanks,
> Charles
> 
> On Tue, Oct 23, 2012 at 12:25 PM, Daniel Mikusa  wrote:
> 
 Hi,
 
 I'm testing performance of our Java application in Tomcat (6.0.30) and
>> we
 have maxThreads set to 750.  I noticed that when i did a netstat -an |
>> grep
 my_ajp_port, i saw around 860 connections.
>> 
>> That does not necessarily mean that you have 860 threads running.  What
>> are you trying to determine by running this command?  If you want to see
>> the number of threads, use jconsole, jvisualvm or jstack.
>> 
>> Also, if you include the output of "netstat -an | grep my_ajp_port" and
>> what OS you are running, someone on the list might be able to better
>> explain the output from the command.
>> 
>> 
 I was expecting to see > 750 Worker Threads in my stack since some extra
 worker threads are needed by Tomcat.  What i saw was around 60 worker
 threads in the trace.
>> 
>> This would be the correct number of threads in use.
>> 
>> Dan
>> 
>> 
 
 Any suggestions/ideas on why that would be?
 
 Cheers,
 Charles
 
>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>> 
>> 


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



Re: [OT] any servlets to implement sort of a google-play-like functionality for android and other types of mobile devices?

2012-10-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

André,

On 10/23/12 3:50 AM, André Warnier wrote:
> [OT philosophical section] Apps are "cool". The whole concept
> however seems to me a throwback, compared to the wonders of the
> Internet and the WWW.  We are going back from a WWW where any
> device running any standard-respecting browser is all that is
> needed to run applications hosted on any server of any vendor under
> any OS and written in any programming language

There /is/ the "what does your browser actually support" caveat. Witness
the slew of webapps that still need to support MSIE 6. Or the fact that
Microsoft can't let MSIE 6 die because so much internal IT
infrastructure (at clients... not at MS) has been built around it.

> [...] to a situation where this one "cool webapp" is only
> available for Apple or Android or Windows-based devices. And you
> have to buy every little bit of functionality separately, and
> scroll through 16 screenfuls of app icons in order to find the one
> you need, if you remember which icon it is.  And service providers,
> instead of developing a web application once for one standard
> browser platform, now have to invest in creating 3 different
> redundant "apps" in order to cover their cool clients lifestyle
> choices. It seems strange to me that nobody seems to raise any
> objection to this gigantic waste of resources.

My favorite part about the whole thing: someone can take a game idea
from 25 years ago -- something that could run in like 2k of memory --
and program it for iOS or Android and suddenly it's the greatest thing
ever and makes the app developer a billion dollars.

Sadly, I don't ever seem to be that guy.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlCGzc0ACgkQ9CaO5/Lv0PAhUwCgikif+gFaHWicyhFI6Om1bHTn
mKwAoKRjxOIPCGtJHdKuTBaxEXOO6hTY
=TmOq
-END PGP SIGNATURE-

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



Re: any servlets to implement sort of a google-play-like functionality for android and other types of mobile devices?

2012-10-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Albrecht,

On 10/22/12 7:20 PM, Albretch Mueller wrote:
> What are the options you have if you want to develop your own
> android mobile apps and want to handle them from your site using
> tomcat as you would (or along with), say, regular http requests and
> Java Web Start applications from browsers?

Using Java Web Start does not require any Java on the backend
whatsoever. You can serve a Java Web Start app from a vanilla IIS with
no dynamic content at all. So, Tomcat itself has really nothing to do
with it all.

> To me Java Web Start was/is an excellent technology and the way I
> see things are happening with Android is that developers (must?)
> keep their applications on "google play" (and a few other
> alternatives), but to me there is something odd and basically wrong
> with that

I don't own an Android device, but my understanding was that you can
side-load apps without having to go through any Marketplace/App
Store/Google Play. Is that what you are trying to do: side-load using
Java Web Start?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlCGzOIACgkQ9CaO5/Lv0PAMegCgkmrneVglBi3tu7zpXSRZ0atk
m/QAnR4p8vpsd/KCoy44C2wIVlOhzln5
=YL6D
-END PGP SIGNATURE-

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



Re: Max Threads - Worker Threads clarification

2012-10-23 Thread Charles Richard
Hi,

Thanks for the reply!

The command was the following:

[root@mysandbox tmp]# netstat -an | grep 8009 | wc
8565136   76184

How should i interpret this?  I thought this meant that 856 threads were
open while my MaxThreads is 750.  I'm trying to understand if all my
workerThreads are busy (hence trying the jstack dump) and then if they are,
not sure how I would do this but try to figure out on what they're busy.

My OS is CentOS 5.8 for my sandbox and Red Hat 5.8 for my production boxes.

Thanks,
Charles

On Tue, Oct 23, 2012 at 12:25 PM, Daniel Mikusa  wrote:

> >> Hi,
> >>
> >> I'm testing performance of our Java application in Tomcat (6.0.30) and
> we
> >> have maxThreads set to 750.  I noticed that when i did a netstat -an |
> grep
> >> my_ajp_port, i saw around 860 connections.
>
> That does not necessarily mean that you have 860 threads running.  What
> are you trying to determine by running this command?  If you want to see
> the number of threads, use jconsole, jvisualvm or jstack.
>
> Also, if you include the output of "netstat -an | grep my_ajp_port" and
> what OS you are running, someone on the list might be able to better
> explain the output from the command.
>
>
> >> I was expecting to see > 750 Worker Threads in my stack since some extra
> >> worker threads are needed by Tomcat.  What i saw was around 60 worker
> >> threads in the trace.
>
> This would be the correct number of threads in use.
>
> Dan
>
>
> >>
> >> Any suggestions/ideas on why that would be?
> >>
> >> Cheers,
> >> Charles
> >>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


RE: Tomcat 6.0 - JNDI resource caching over virtual hosts

2012-10-23 Thread Jan Kostelansky
I am using Tomcat 6.0.18 deployed as web service on Windows XP SP3.

 

I created additional Host element in conf/server.xml, so I have two
virtual hosts: localhost (default) and janko









 

I deployed the same web applications in both hosts. The first web
application is main, the other one is hypersonic database as storage for
the web application. The main web application defines access to
hypersonic database as resource.

Then localhost web application points to hypersonic listening on port
9002



Then janko web application points to hypersonic listening on port 9003



The deployment descriptors are defined in conf/Catalina/localhost and
conf/Catalina/janko folders. docBase points outside of tomcat_home.

 

However when accessing both web applications only one data source is
used by both web applications depending which one is used first. It
looks to me that JNDI name jdbc/profile is shared across web
applications.

 

The application uses log4j for logging. Before both web applications
were deployed under the same context name. The side effect was that both
applications logged to the same file. When I renamed web application on
the janko virtual host, the log4j issue was solved. Looks like the same
log4j class instance was used for applications with the same context
name.

 

I do not use global resources in server.xml. Resources are defined in
application context file only. Based on documentation resource elements
defined in context is private to that context only.

 

Thank you in advance for any help,

Jan



Re: Max Threads - Worker Threads clarification

2012-10-23 Thread Daniel Mikusa
>> Hi,
>> 
>> I'm testing performance of our Java application in Tomcat (6.0.30) and we
>> have maxThreads set to 750.  I noticed that when i did a netstat -an | grep
>> my_ajp_port, i saw around 860 connections.  

That does not necessarily mean that you have 860 threads running.  What are you 
trying to determine by running this command?  If you want to see the number of 
threads, use jconsole, jvisualvm or jstack.

Also, if you include the output of "netstat -an | grep my_ajp_port" and what OS 
you are running, someone on the list might be able to better explain the output 
from the command.


>> I was expecting to see > 750 Worker Threads in my stack since some extra
>> worker threads are needed by Tomcat.  What i saw was around 60 worker
>> threads in the trace.

This would be the correct number of threads in use.

Dan


>> 
>> Any suggestions/ideas on why that would be?
>> 
>> Cheers,
>> Charles
>> 


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



Re: Max Threads - Worker Threads clarification

2012-10-23 Thread Daniel Barcellos
I also facing similiar issues and what I'm noting is that almost every
question is either about tomcat's perfomance and optimization or minimal
setup. It woul be wonderful if exists some sort of tutorial or best
pratices about that point...

I'll track this thread too...

2012/10/23 Charles Richard 

> Hi,
>
> I'm testing performance of our Java application in Tomcat (6.0.30) and we
> have maxThreads set to 750.  I noticed that when i did a netstat -an | grep
> my_ajp_port, i saw around 860 connections.  Wanting to know what was
> happening, I did a jstack of my tomcat pid and inspected the track with
> Samurai.
>
> I was expecting to see > 750 Worker Threads in my stack since some extra
> worker threads are needed by Tomcat.  What i saw was around 60 worker
> threads in the trace.
>
> Any suggestions/ideas on why that would be?
>
> Cheers,
> Charles
>


Max Threads - Worker Threads clarification

2012-10-23 Thread Charles Richard
Hi,

I'm testing performance of our Java application in Tomcat (6.0.30) and we
have maxThreads set to 750.  I noticed that when i did a netstat -an | grep
my_ajp_port, i saw around 860 connections.  Wanting to know what was
happening, I did a jstack of my tomcat pid and inspected the track with
Samurai.

I was expecting to see > 750 Worker Threads in my stack since some extra
worker threads are needed by Tomcat.  What i saw was around 60 worker
threads in the trace.

Any suggestions/ideas on why that would be?

Cheers,
Charles


Re: any servlets to implement sort of a google-play-like functionality for android and other types of mobile devices?

2012-10-23 Thread Albretch Mueller
 these guys tag on app store messiness issues
~
 http://techcrunch.com/tag/app-store/
~
 lbrtchx

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




Re: any servlets to implement sort of a google-play-like functionality for android and other types of mobile devices?

2012-10-23 Thread David kerber

On 10/23/2012 4:39 AM, Albretch Mueller wrote:

Unless you are talking about setting up some kind of "app store" and using Tomcat to do 
that? but in such a case, the issue would not be about Tomcat, but about creating an "app 
store webapp" running under Tomcat. Or?

~
  Exactly! Where is an (or the?) "app store webapp" running under Tomcat?


...


~
  So, again, where is the "app store webapp" running under Tomcat,
Jetty, or any other servlet container?
~
  Are we starting such a project?
~
  lbrtchx


I'm not; are you?

D


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



[ANN] Apache Tomcat 6.0.36 released

2012-10-23 Thread jean-frederic clere

The Apache Tomcat team announces the immediate availability of Apache
Tomcat 6.0.36 stable.

Apache Tomcat 6.0.36 is primarily a security and bug fix release. All 
users of older versions of the Tomcat 6.0 family should upgrade to 6.0.36.



Note that is version has 4 zip binaries: a generic one and three
bundled with Tomcat native binaries for different CPU architectures.

Apache Tomcat 6.0 includes new features over Apache Tomcat 5.5,
including support for the new Servlet 2.5 and JSP 2.1 specifications, a
refactored clustering implementation, advanced IO features, and
improvements in memory usage.

Please refer to the change log for the list of changes:
http://tomcat.apache.org/tomcat-6.0-doc/changelog.html

Downloads:
http://tomcat.apache.org/download-60.cgi

Migration guide from Apache Tomcat 5.5.x:
http://tomcat.apache.org/migration.html

Thank you,

-- The Apache Tomcat Team

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



Re: any servlets to implement sort of a google-play-like functionality for android and other types of mobile devices?

2012-10-23 Thread Albretch Mueller
> Unless you are talking about setting up some kind of "app store" and using 
> Tomcat to do that? but in such a case, the issue would not be about Tomcat, 
> but about creating an "app store webapp" running under Tomcat. Or?
~
 Exactly! Where is an (or the?) "app store webapp" running under Tomcat?
~
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
~
 http://en.wikipedia.org/wiki/Java_Web_Start
~
 Some key benefits of this technology include seamless version
updating for globally distributed applications ...
~
 Java Network Launching Protocol (JNLP):
~
 Updates of the software download from the Web become available when
the user has a connection to the Internet, thus easing the burden of
deployment.
~
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
~
 I would add that you could run it on any browser backed by a JRE (any
browser!) and from any compliant java web server. Other than the
little obsession google has about constantly being on your face/"being
reality", becoming some sort of "Internet goverment"
~
> The whole concept however seems to me a throwback ...
> ... And service providers, instead of developing a web application once for 
> one standard browser platform, now have to invest in creating 3 different 
> redundant "apps" in order to cover their cool clients lifestyle choices.
It seems strange to me that nobody seems to raise any objection to
this gigantic waste of resources.
> Or is that my fossilised brain at work again ?
~
 This is also exactly how I feel about it. I have seen that before in
technology, we are going now through the "talking dog" phase ;-), then
people will start making sense by asking themselves. Well, what it is
actually saying? Does it make sense? ...
~
 I find really odd that "while Android Market keeps 30% of your app
price and gives you the remaining 70% ..." and the percentages is not
what I find odd, but the tacit fact that it is google the one
"keeping" and "giving".
~
 I see things technological getting uglier and uglier. Oracle "buying"
Sun, Oracle suing google, Apple suing Samsung ... so I thought there
might be some "legal" issues developers are avoiding, but it doesn't
seem to be the case. As of today:
~
$ date
Tue Oct 23 04:31:07 UTC 2012
~
 there certainly are "alternatives":
~
 http://www.getjar.com/
 http://www.amazon.com/b?node=2350149011
 http://slideme.org/
 http://www.appbrain.com/
 http://www.1mobile.com/
 http://www.papktop.com/
~
 So, again, where is the "app store webapp" running under Tomcat,
Jetty, or any other servlet container?
~
 Are we starting such a project?
~
 lbrtchx

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



Re: any servlets to implement sort of a google-play-like functionality for android and other types of mobile devices?

2012-10-23 Thread André Warnier

Albretch Mueller wrote:

 OK, I may not have been clear enough and I have been "gone fishing"
for quite a long time.
~
 To me Java Web Start was/is an excellent technology and the way I see
things are happening with Android is that developers (must?) keep
their applications on "google play" (and a few other alternatives),
but to me there is something odd and basically wrong with that
~
 It is not just about an http request, but the way google goes about
the whole "Java Web Start" thing (I would call it that to make my
(possibly wrong/outdated) point)
~
 What are the options you have if you want to develop your own android
mobile apps and want to handle them from your site using tomcat as you
would (or along with), say, regular http requests and Java Web Start
applications from browsers?
~


Maybe it is due to my age and my consequently rigid brain synaptic connections, but I 
still do not understand what you mean by "handle them from your site using tomcat".


When I look at a smartphone or iPad screen showing "apps", it very much reminds me of a 
web page showing icons, under which hide java "applets"; and when you click one of these 
"apps", a piece of code starts running and takes over the screen.
Now what this "app" does, is another story.  It could be self-contained and not 
communicate with anything else, like a tic-tac-toe app or a calculatro app.  Or it could 
be that it needs to communicate with some server on the Internet in order to be useful 
(like an airplane reservation app e.g.).  In that case, it needs to use a communication 
protocol in order to talk to that server, and that communication protocol could be HTTP 
and that server could be running Tomcat.
Now from the Tomcat point of view, whether the client talking to it is an app or a browser 
or anything else which properly talks HTTP should not matter.


Unless you are talking about setting up some kind of "app store" and using Tomcat to do 
that ? but in such a case, the issue would not be about Tomcat, but about creating an "app 
store webapp" running under Tomcat. Or ?


I have the feeling that something fundamental may be escaping me here, but for now I am 
still puzzled.



[OT philosophical section]
Apps are "cool".
The whole concept however seems to me a throwback, compared to the wonders of the Internet 
and the WWW.  We are going back from a WWW where any device running any 
standard-respecting browser is all that is needed to run applications hosted on any server 
of any vendor under any OS and written in any programming language, to a situation where 
this one "cool webapp" is only available for Apple or Android or Windows-based devices. 
And you have to buy every little bit of functionality separately, and scroll through 16 
screenfuls of app icons in order to find the one you need, if you remember which icon it 
is.  And service providers, instead of developing a web application once for one standard 
browser platform, now have to invest in creating 3 different redundant "apps" in order to 
cover their cool clients lifestyle choices.
It seems strange to me that nobody seems to raise any objection to this gigantic waste of 
resources.

Or is that my fossilised brain at work again ?


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