Re: SSL Session Reuse in APR based connector

2015-11-27 Thread Sanaullah
Thanks Chirs.

On Thu, Nov 26, 2015 at 11:12 PM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> Sanullah,
>
> On 11/26/15 11:21 AM, Sanaullah wrote:
> > we are currently running tomcat 8 and I am trying to achieve higher
> > performance. one of the process is to use the SSL Session reuse which
> will
> > reduce the CPU intensive computation.
> >
> > Can someone let me know if its supported for APR based connector and also
> > let me know the right parameter to use?
>
> Are you talking about "session tickets"?
>
> I don't believe Tomcat supports session tickets using any SSL connector.
>
> -chris
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Need assistance on web application

2015-11-27 Thread Björn Raupach

Hi Subhro,

> On 27 Nov 2015, at 11:21, Subhro Paul  wrote:
> 
> Hi Team,
> 
> We have a simple web application(Example : www.example.com) which don't 
> have any ".war" or ".ear". It's just have jsps, htmls, javascripts, css 
> and images inside a folder which is placed in webapps of Tomcat. Now we 
> are developing a complext module which will be referred from the same 
> application with same url, like "www.example.com/complexModule". For that 
> we will create a new war or ear file as necessary like 
> "complexModule.war".
> 
> how can we configure our website in tomcat so that we can refer the new 
> application as "www.example.com/complexModule” ?

So your current web application is in a folder ROOT? That is Tomcat’s way
of deploying to the root context of a host.

Any other folders are reachable just by folder names. war-files are usually
exploded to directories first.

For example, if your host is www.example.com  and the 
webapps directory
has the following two folders:

ROOT/
complexModule/

Then you can access the two web applications through a browser with
the following URLs

http://www.example.com  for ROOT
http://www.example.com/compleModule  for 
complexModule

> 
> Note:- Contents present in "www.example.com" will be as it is and will not 
> be zipped in "war" or "ear". Only new contents for "complexModule" will 
> have war/ear and will placed as per required configuration.
> 
> Thanks & Regards
> Subhro Paul
> =-=-=
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain 
> confidential or privileged information. If you are 
> not the intended recipient, any dissemination, use, 
> review, distribution, printing or copying of the 
> information contained in this e-mail message 
> and/or attachments to it are strictly prohibited. If 
> you have received this communication in error, 
> please notify us by reply e-mail or telephone and 
> immediately and permanently delete the message 
> and any attachments. Thank you
> 
> 



RE: Can tomcat serve MPI (parallel) applications?

2015-11-27 Thread Theo Sweeny
Hi Konstantin,

-Original Message-
From: Konstantin Kolinko [mailto:knst.koli...@gmail.com]
Sent: 27 November 2015 09:15
To: Tomcat Users List 
Subject: Re: Can tomcat serve MPI (parallel) applications?

2015-11-26 23:18 GMT+03:00 Martijn Slouter :
> Hello,
> I am looking for a solution for a tomcat container, which is supposed
> to serve a web application, which is using MPI (openmpi) internally.
> (The servlet is making JNI calls to C library functions. I have
> validated that this Java-MPI connection runs without problems when NOT
> using tomcat.)
>
> In catalina.sh, I have changed the lines which actually starts tomcat
>   eval "\"$_RUNJAVA\"" "\"$LOGGING_CONFIG\"" $LOGGING_MANAGER ...
> into the same command preceded by mpirun:
>   eval mpirun -n 2 "\"$_RUNJAVA\"" "\"$LOGGING_CONFIG\""
> $LOGGING_MANAGER ...
>
> However, in catalina.out I get errors like
>   "... java.net.BindException: Address already in use ..."
> This makes sense, because both MPI processes will try to bind to the
> same address.
>
> Is there any chance to have tomcat serve a web application which is
> using native MPI functions inside one of its servlets?
>
> I am using apache-tomcat-7.0.65 on Ubuntu 15.04.

What is your goal, your expectation of Tomcat? What these n instances should do 
that 1 instance cannot?

Is is possible to start several Tomcats with the same CATALINA_BASE in 
parallel, but you have to 1. Disable shutdown port (set port="-1" on  
element if I remember correctly)

It means that these Tomcats have to shut themselves down eventually (like 
explicitly calling System.exit()), or you have to kill them by sending a signal 
(knowing pid of the process).

2. Remove connectors, or disable them (port="-1" if I remember correctly), or 
configure them to autoselect a random port number (port="0" if I remember 
correctly)

A connector can be configured, reconfigured, started/stopped programmatically 
via JMX.

3. Do not perform any writing activity in CATALINA_BASE

- Do not deploy war files (so that Tomcat does not need to unpack them)
- Do not deploy any new applications while Tomcat is running. Turn off 
autoDeploy feature on Host. Do not use Tomcat Manager web application.

- Do not compile JSP pages. Turn them into servlets by precompiling them with 
Jasper JspC.

- Do not write serialized session data (configure  with pathname="").

- Turn off logging (or turn a deaf ear to it trying to concurrently write into 
the same log files).

Best regards,
Konstantin Kolinko

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


In reply to - " Is it possible to start several Tomcats with the same 
CATALINA_BASE in parallel, but you have to 1. Disable shutdown port (set 
port="-1" on  element if I remember correctly)"

The approach I've taken is to create a port standard for each JVM instance, 
where each protocol in use within the JVM has its own unique port number, this 
prevents conflict between multiple Tomcat instances.

E.G. Where there are four Tomcat instances calling shutdown -

tomcat0/conf/server.xml:
tomcat1/conf/server.xml:
tomcat2/conf/server.xml:
tomcat3/conf/server.xml:

The same approach applied for HTTP connector -

tomcat0/conf/server.xml:

Re: Can tomcat serve MPI (parallel) applications?

2015-11-27 Thread Konstantin Kolinko
2015-11-26 23:18 GMT+03:00 Martijn Slouter :
> Hello,
> I am looking for a solution for a tomcat container, which is supposed to
> serve a web application, which is using MPI (openmpi) internally. (The
> servlet is making JNI calls to C library functions. I have validated that
> this Java-MPI connection runs without problems when NOT using tomcat.)
>
> In catalina.sh, I have changed the lines which actually starts tomcat
>   eval "\"$_RUNJAVA\"" "\"$LOGGING_CONFIG\"" $LOGGING_MANAGER ...
> into the same command preceded by mpirun:
>   eval mpirun -n 2 "\"$_RUNJAVA\"" "\"$LOGGING_CONFIG\"" $LOGGING_MANAGER
> ...
>
> However, in catalina.out I get errors like
>   "... java.net.BindException: Address already in use ..."
> This makes sense, because both MPI processes will try to bind to the same
> address.
>
> Is there any chance to have tomcat serve a web application which is using
> native MPI functions inside one of its servlets?
>
> I am using apache-tomcat-7.0.65 on Ubuntu 15.04.

What is your goal, your expectation of Tomcat? What these n instances
should do that 1 instance cannot?

Is is possible to start several Tomcats with the same CATALINA_BASE in
parallel, but you have to
1. Disable shutdown port (set port="-1" on  element if I
remember correctly)

It means that these Tomcats have to shut themselves down eventually
(like explicitly calling System.exit()), or you have to kill them by
sending a signal (knowing pid of the process).

2. Remove connectors, or disable them (port="-1" if I remember
correctly), or configure them to autoselect a random port number
(port="0" if I remember correctly)

A connector can be configured, reconfigured, started/stopped
programmatically via JMX.

3. Do not perform any writing activity in CATALINA_BASE

- Do not deploy war files (so that Tomcat does not need to unpack them)
- Do not deploy any new applications while Tomcat is running. Turn off
autoDeploy feature on Host. Do not use Tomcat Manager web application.

- Do not compile JSP pages. Turn them into servlets by precompiling
them with Jasper JspC.

- Do not write serialized session data (configure  with pathname="").

- Turn off logging (or turn a deaf ear to it trying to concurrently
write into the same log files).


Best regards,
Konstantin Kolinko

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



Need assistance on web application

2015-11-27 Thread Subhro Paul
Hi Team,

We have a simple web application(Example : www.example.com) which don't 
have any ".war" or ".ear". It's just have jsps, htmls, javascripts, css 
and images inside a folder which is placed in webapps of Tomcat. Now we 
are developing a complext module which will be referred from the same 
application with same url, like "www.example.com/complexModule". For that 
we will create a new war or ear file as necessary like 
"complexModule.war".

how can we configure our website in tomcat so that we can refer the new 
application as "www.example.com/complexModule" ?

Note:- Contents present in "www.example.com" will be as it is and will not 
be zipped in "war" or "ear". Only new contents for "complexModule" will 
have war/ear and will placed as per required configuration.

Thanks & Regards
Subhro Paul
=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you