Lost my CCS and resources with mod_proxy and Tomcat

2019-08-29 Thread Edwin Quijada
Hi!
I have an application developed with Grails3 and Postgres, my app runs fine in 
the port 8084 , https://server:8084/app now I am trying to put an apache proxy 
with mod_proxy but I have an weird error
The app load but doesnt load the resources, CSS and JavaScript, so the app 
looks useless

[configuration for proxy]



ProxyPreserveHost on
RequestHeader set X-Forwarded-Proto https
RequestHeader set X-Forwarded-Port 443

ProxyPass /me  http://localhost:8084/menuapp/login
ProxyPassReverse /me http://localhost:8084/menuapp/login

  



The app doesnt have any css or javascritp code

Any cluees about this ?



Re: Problem with Apache In front of Tomcat - No access to resource

2016-12-30 Thread Edwin Quijada


Chris,

From: Christopher Schultz <ch...@christopherschultz.net>
Sent: Friday, December 30, 2016 12:36 AM
To: Tomcat Users List
Subject: Re: Problem with Apache In front of Tomcat - No access to resource

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Edwin,

On 12/28/16 5:09 PM, Edwin Quijada wrote:
> Hi!
>
> I have a problem with apache + Tomcat. I am trying to put apache
> in front of Tomcat to access my app but I am getting an error 404.
>
> I have 2 virtual servers in apache for 2 DNS with 2 tomcats
>
> This is one of my virtual server
>
>  ServerNameserver1.org ServerAlias
> *.server1.org ServerAdmin webmaster@localhost DocumentRoot
> /var/www/html ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog
> ${APACHE_LOG_DIR}/access.log combined #ProxyPreserveHost On
>
> ProxyRequests off ProxyPreserveHost On # Servers to proxy the
> connection, or # List of application servers Usage ProxyPass /
> http://localhost:8082/jq ProxyPassReverse /
> http://localhost:8082/jq 
>
> The problem is when I access the site http://server1.org should be
>  go to http://localhost:8082/jq but instead it goes to
> http://localhost:8082/jq/jq and obvious I get an error 404.
>
> My problem is I dont know why it duplicates the jq suffix if I go
> to http://ipserver1:8082/jq there is no problem.
>
> I check the error.log from apache and there is nothing to see.
>
> Any help or any clues will be appreciated.
>
>
>
> This is the output when I do http://server1.org Estado HTTP 404 -
> /jqjq/
>
> type Informe de estado
>
> mensaje /jqjq/
>
> descripción El recurso requerido no está disponible.

If you map / -> /jq, then any request for / will be mapped to /jq/jq,
just as you requested.

In my opinion, mapping / to /jq is going to cause you an awful lot of
headaches. It is better to map / -> / or /jq -> /jq.

Try this:

   ProxyPass /jqhttp://localhost:8082/jq
   ProxyPassReverse /jq http://localhost:8082/jq

Then make a request to http://server1.org/jq/ and see if you get
better results.

- -chris

You alright.! that is the behaviour that I get, the question is why ?
I thought if I map / -> /jq it would go to /jq not /jq/jq , can you explain me 
why this occurs ?

Yoy alrigth in everuthing you told me but I have that doubt , why / -> /jq  go 
to /jq/jq ??

And yes, your solution worked


Problem with Apache In front of Tomcat - No access to resource

2016-12-28 Thread Edwin Quijada
Hi!

I have  a problem with apache + Tomcat. I am trying to put apache in front of 
Tomcat to access my app but I am getting an error 404.

I have 2 virtual servers in apache for 2 DNS with 2 tomcats


This is one of my virtual server


  ServerNameserver1.org
  ServerAlias *.server1.org
  ServerAdmin webmaster@localhost
  DocumentRoot /var/www/html
  ErrorLog ${APACHE_LOG_DIR}/error.log
  CustomLog ${APACHE_LOG_DIR}/access.log combined
  #ProxyPreserveHost On

  ProxyRequests off
  ProxyPreserveHost On
  # Servers to proxy the connection, or
  # List of application servers Usage
  ProxyPass /http://localhost:8082/jq
  ProxyPassReverse / http://localhost:8082/jq


The problem is when I access the site http://server1.org should be go to 
http://localhost:8082/jq but instead it goes to http://localhost:8082/jq/jq and 
obvious I get an error 404.

My problem is I dont know why it duplicates the jq suffix if I go to 
http://ipserver1:8082/jq there is no problem.

I check the error.log from apache and there is nothing to see.

Any help or any clues will be appreciated.



This is the output when I do http://server1.org
Estado HTTP 404 - /jqjq/

type Informe de estado

mensaje /jqjq/

descripción El recurso requerido no está disponible.


Apache Tomcat/8

Thks.!



Tomcat SSL or Apache SSL

2016-12-19 Thread Edwin Quijada
Hi!

I am trying to use SSL with my server Tomcat . I have read different articles 
when it recommends that is better use Apache webserver in front of Tomcat to 
and apache handles the SSL conection. My problem is that I cannot use apache in 
front of Tomcat because I am using websockets and these doesnt work with apache 
in front of.


I read howto use Tomcat with SSL but I 'd like to know any comments from you 
about this.

 TIA


Re: How many instances Tomcat?

2016-12-16 Thread Edwin Quijada




From: Daniel Savard <daniel.sav...@gmail.com>
Sent: Friday, December 16, 2016 9:01 PM
To: Tomcat Users List
Subject: Re: How many instances Tomcat?

2016-12-16 14:48 GMT-05:00 Edwin Quijada <listas_quij...@hotmail.com>:

> Hi!
> I have 2 different projects in the same server. My server has 16GB Ram and
> 8 core so I am not sure if I need to up 2 instance of Tomcat or just one
> instace and Tomcat server both projects.
>
>
> What is the best configuration ? I have too ApacheWeb Sserver like proxy
> and SSL and virtual server.
>
>
> Any cluees or ideas? Pro and cons about each solution
>
>
> TIA
>
>
It depends on the application. On some of my servers, the application
provider recommend a limit on the number of concurrent connections per
instance. I am even not sure it is justified, however, since we get support
from this provider we have to conform to its directives. However, something
good about having more than one instance is you can shutdown the
application without interrupting the service.

For ressources consumption, you need to look at what your specific
applications need and what kind of workload you expect. Giving the amount
of RAM and the number of cores is useless. I run 9 instances of Tomcat on a
single server with 16 GB of RAM and 2 cores.

OK, sounds good.! So I think use two instances is not a problem. I wanna use 
apache webserver in front of these Tomcats with virtual servers but I dont know 
if will be a good idea because I use websockets and I dont know if websockets 
can pass throught webserver to tomcat



How many instances Tomcat?

2016-12-16 Thread Edwin Quijada
Hi!
I have 2 different projects in the same server. My server has 16GB Ram and 8 
core so I am not sure if I need to up 2 instance of Tomcat or just one instace 
and Tomcat server both projects.


What is the best configuration ? I have too ApacheWeb Sserver like proxy and 
SSL and virtual server.


Any cluees or ideas? Pro and cons about each solution


TIA



Weird problem with WebSockets

2016-07-08 Thread Edwin Quijada
Hi!
I have developed an app using websocket. I am using servers to upload my app in 
DigitalOcean but here the websockets doesnt work but using another server 
server4U everuthing is fine. I am using Tomcat 8.5.3 somebody has any cluee, 
any, about this behavour , the only thing that I think is DigitalOcean myabe 
has any proxy in front of their servers , Tomcat is so weird with this, and 
server4U dont.


I tested my app with WildFly in DigitalOcean and it works fine. I know maybe 
this is not a problem or who knows but I want just a cluee.


Thks In Advance


Memory Leak Tomcat with Vaadin+Grails

2016-07-07 Thread Edwin Quijada
Hi! I having a weird problem with memory in my Tomcat , when I check the log I 
am getting this

06-Jul-2016 12:11:47.583 SEVERE 
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks
The web application [presales] created a ThreadLocal with key of type 
[java.lang.ThreadLocal]
(value [java.lang.ThreadLocal@536ad127]) and a value of type 
[com.googlecode.concurrentlinkedhashmap.ConcurrentHashMapV8.CounterHashCode]
(value 
[com.googlecode.concurrentlinkedhashmap.ConcurrentHashMapV8$CounterHashCode@1f2be536])
 but failed to remove it when the web application was stopped.
Threads are going to be renewed over time to try and avoid a probable memory 
leak.

Somebody can address me in rigth direction to solve this issue. This server 
goes down without reason anytime for memory problems.






Re: Need help with URL redirecting

2016-06-17 Thread Edwin Quijada
Maybe this can help you

http://antoine.hordez.fr/2012/12/29/howto-tomcat7-apache2-mod_proxy_ajp-on-centos-rhel-6/

HOWTO : Tomcat 7 + Apache 2 + mod_proxy_ajp on CentOS 
...
antoine.hordez.fr
Try http://www.mybestapp.com/ in your browser : You can access tomcat through 
Apache on port 80. Create a virtual host for static content in Apache





From: Sean Son 
Sent: Friday, June 17, 2016 3:03 PM
To: users@tomcat.apache.org
Subject: Need help with URL redirecting

Hello all

I am new to the list. This is what i am trying to do but need help on:


I have a webapp running on tomcat 8:  https://myapp.example.com:8443/myapp

I am going to set up a DNS record myapp.example.com which will point to the
IP address of the tomcat server that hosts the webapp.. I want this new DNS
record myapp.example.com to redirect to https://myapp.example.com:8443/myapp.
In other words, I want the URL to redirect port 80 to the URL for the
webapp automatically so the users will not have to enter in the port number
whenever they want to browse to the webapp. I tried doing research on
google and I was not able to find a straight forward way of doing this. Any
help is greatly appreciated!


Thank you

Sean


Problem with Apache in front of Tomcat

2016-06-11 Thread Edwin Quijada
Hi!
I am trying to put Apache in front of Tomcat , DEbian Jessie but it become a 
titanic work without success. I read all info about this and seems it is easy 
but doesnt work.


I am using APache 2.4+ Jessie +Tomcat 8.035 , I use this tuto 
http://www.zeitoun.net/articles/configure-mod_proxy_ajp-with-tomcat/start

How to configure mod_proxy_ajp with Tomcat - 
Zeitoun
www.zeitoun.net
mod_proxy_ajp is an Apache module which can be used to forward a client HTTP 
request to an internal Tomcat application server using the AJP protocol.

but doesnt work , I seek others sources and all has the same info but I cant 
work for me


When I go myserver.com I get an error "Server Not Found" when I go to the logs 
catalina.out and error.log for apache doesnt say anything


This is my 000-default.conf



ServerAdmin webmaster@localhost
#DocumentRoot /var/www/html

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

#

AddDefaultCharset Off
Order deny,allow
Allow from all


 # this will pass all the requests from httpd to tomcat8
 ProxyPass / ajp://localhost:8009/fortunamovil
 ProxyPassReverse / ajp://localhost:8009/fortunamovil



I have installed AJP modules for Apache and everything but really I dont know 
to do



I activate the coneecto AJP in the server.xml


Please, any cluees , help because this is make me crazy!!



Re: Problem with monitoring with JMX

2016-05-24 Thread Edwin Quijada
Tomcat 8.0.33
Java 1.8
Debian 8


From: Christopher Schultz <ch...@christopherschultz.net>
Sent: Tuesday, May 24, 2016 9:45 PM
To: Tomcat Users List
Subject: Re: Problem with monitoring with JMX

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Edwin,

On 5/24/16 5:03 PM, Edwin Quijada wrote:
> What are shared apps? I use JAVA_OPTS and it works ! But now I dont
> know if it is correct

CATALINA_OPTS should be the right one. JAVA_OPTS is used for multiple
tools, and will configure every JVM you launch (even for e.g.
"shutdown"). CATALINA_OPTS will only apply to launching a new Tomcat
instance.

What version of Tomcat are you running?

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAldEy1wACgkQ9CaO5/Lv0PDkNgCgjI0dHLZCK6VXLr5srg6x6n+W
67YAn0qnSobJoRbVZGiGrKVNgG5ALHHL
=Vd0p
-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: Problem with monitoring with JMX

2016-05-24 Thread Edwin Quijada
I didnt want to put on startup script because it is not correct I read this


From: Niranjan Babu Bommu <niranjan.bo...@gmail.com>
Sent: Tuesday, May 24, 2016 8:36 PM
To: Tomcat Users List
Subject: Re: Problem with monitoring with JMX

can you try putting config in startup script?


CATALINA_OPTS="-Xms512M -Xmx1024M -server -XX:+UseParallelGC"
CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote \
-Dcom.sun.management.jmxremote.port= \
-Dcom.sun.management.jmxremote.authenticate=false \
-Dcom.sun.management.jmxremote.ssl=false "

I'm guessing when you set this in setenv.sh, this may not able to find all
the classes.

On Tue, May 24, 2016 at 4:31 PM, Niranjan Babu Bommu <
niranjan.bo...@gmail.com> wrote:

> make sense,  if you are not using shared apps better to use CATALINA_OPTS.
>
> On Tue, May 24, 2016 at 4:07 PM, Edwin Quijada <listas_quij...@hotmail.com
> > wrote:
>
>> I read that is better use CATALINA_OPTS instead of JAVA_OPTS
>>
>> 
>> From: Niranjan Babu Bommu <niranjan.bo...@gmail.com>
>> Sent: Tuesday, May 24, 2016 7:44 PM
>> To: Tomcat Users List
>> Subject: Re: Problem with monitoring with JMX
>>
>> I think this would be JAVA_OPTS.
>>
>> CATALINA_OPTS="-Xms512M -Xmx1024M -server -XX:+UseParallelGC"
>>
>> On Tue, May 24, 2016 at 2:50 PM, Edwin Quijada <
>> listas_quij...@hotmail.com>
>> wrote:
>>
>> > Hi!
>> > I am trying to monitor my Tomcat server using JMX remote when I
>> configure
>> > the JMX protocol when I try to start Tomcat I get this
>> >
>> > Could not load Logmanager "org.apache.juli.ClassLoaderLogManager"
>> > java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager
>> > at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
>> > at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>> > at java.security.AccessController.doPrivileged(Native Method)
>> > at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
>> > at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>> > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>> > at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>> > at java.util.logging.LogManager$1.run(LogManager.java:195)
>> > at java.util.logging.LogManager$1.run(LogManager.java:181)
>> > at java.security.AccessController.doPrivileged(Native Method)
>> > at java.util.logging.LogManager.(LogManager.java:181)
>> > at java.util.logging.Logger.demandLogger(Logger.java:448)
>> > at java.util.logging.Logger.getLogger(Logger.java:502)
>> > at
>> com.sun.jmx.remote.util.ClassLogger.(ClassLogger.java:55)
>> > at
>> >
>> sun.management.jmxremote.ConnectorBootstrap.(ConnectorBootstrap.java:814)
>> > at sun.management.Agent.startAgent(Agent.java:257)
>> > at sun.management.Agent.startAgent(Agent.java:447)
>> > Can't load log handler "1catalina.org.apache.juli.AsyncFileHandler"
>> > java.lang.ClassNotFoundException:
>> > 1catalina.org.apache.juli.AsyncFileHandler
>> > java.lang.ClassNotFoundException:
>> > 1catalina.org.apache.juli.AsyncFileHandler
>> >
>> > and to the bottom I get errror :
>> > Error: Password file not found:
>> > /usr/lib/jvm/java-8-oracle/jre/lib/management/jmxremote.password
>> >
>> > but my config doesnt use password
>> >
>> > This is my setenv.sh
>> > CATALINA_OPTS="-Xms512M -Xmx1024M -server -XX:+UseParallelGC"
>> > CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote \
>> > -Dcom.sun.management.jmxremote.port= \
>> > -Dcom.sun.management.jmxremote.authenticate=false \
>> > -Dcom.sun.management.jmxremote.ssl=false "
>> >
>> > When I put off this configuration everything is fine and Tomcat can
>> startup
>> >
>> > Any cluees?>
>> >
>> >
>> #-Dcom.sun.management.jmxremote.password.file=../conf/jmxremote.password \
>> > #-Dcom.sun.management.jmxremote.access.file=../conf/jmxremote.access"
>> >
>> >
>> >
>>
>>
>> --
>> *Thanks*
>> *Niranjan*
>> *+1 781.956.6900*
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
>
>
> --
> *Thanks*
> *Niranjan*
> *+1 781.956.6900 <%2B1%20781.956.6900>*
>



--
*Thanks*
*Niranjan*
*+1 781.956.6900*

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



Re: Problem with monitoring with JMX

2016-05-24 Thread Edwin Quijada
What are shared apps? 
I use JAVA_OPTS and it works ! But now I dont know if it is correct 


From: Niranjan Babu Bommu <niranjan.bo...@gmail.com>
Sent: Tuesday, May 24, 2016 8:31 PM
To: Tomcat Users List
Subject: Re: Problem with monitoring with JMX

make sense,  if you are not using shared apps better to use CATALINA_OPTS.

On Tue, May 24, 2016 at 4:07 PM, Edwin Quijada <listas_quij...@hotmail.com>
wrote:

> I read that is better use CATALINA_OPTS instead of JAVA_OPTS
>
> 
> From: Niranjan Babu Bommu <niranjan.bo...@gmail.com>
> Sent: Tuesday, May 24, 2016 7:44 PM
> To: Tomcat Users List
> Subject: Re: Problem with monitoring with JMX
>
> I think this would be JAVA_OPTS.
>
> CATALINA_OPTS="-Xms512M -Xmx1024M -server -XX:+UseParallelGC"
>
> On Tue, May 24, 2016 at 2:50 PM, Edwin Quijada <listas_quij...@hotmail.com
> >
> wrote:
>
> > Hi!
> > I am trying to monitor my Tomcat server using JMX remote when I configure
> > the JMX protocol when I try to start Tomcat I get this
> >
> > Could not load Logmanager "org.apache.juli.ClassLoaderLogManager"
> > java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager
> > at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
> > at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> > at java.util.logging.LogManager$1.run(LogManager.java:195)
> > at java.util.logging.LogManager$1.run(LogManager.java:181)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at java.util.logging.LogManager.(LogManager.java:181)
> > at java.util.logging.Logger.demandLogger(Logger.java:448)
> > at java.util.logging.Logger.getLogger(Logger.java:502)
> > at
> com.sun.jmx.remote.util.ClassLogger.(ClassLogger.java:55)
> > at
> >
> sun.management.jmxremote.ConnectorBootstrap.(ConnectorBootstrap.java:814)
> > at sun.management.Agent.startAgent(Agent.java:257)
> > at sun.management.Agent.startAgent(Agent.java:447)
> > Can't load log handler "1catalina.org.apache.juli.AsyncFileHandler"
> > java.lang.ClassNotFoundException:
> > 1catalina.org.apache.juli.AsyncFileHandler
> > java.lang.ClassNotFoundException:
> > 1catalina.org.apache.juli.AsyncFileHandler
> >
> > and to the bottom I get errror :
> > Error: Password file not found:
> > /usr/lib/jvm/java-8-oracle/jre/lib/management/jmxremote.password
> >
> > but my config doesnt use password
> >
> > This is my setenv.sh
> > CATALINA_OPTS="-Xms512M -Xmx1024M -server -XX:+UseParallelGC"
> > CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote \
> > -Dcom.sun.management.jmxremote.port= \
> > -Dcom.sun.management.jmxremote.authenticate=false \
> > -Dcom.sun.management.jmxremote.ssl=false "
> >
> > When I put off this configuration everything is fine and Tomcat can
> startup
> >
> > Any cluees?>
> >
> > #-Dcom.sun.management.jmxremote.password.file=../conf/jmxremote.password
> \
> > #-Dcom.sun.management.jmxremote.access.file=../conf/jmxremote.access"
> >
> >
> >
>
>
> --
> *Thanks*
> *Niranjan*
> *+1 781.956.6900*
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


--
*Thanks*
*Niranjan*
*+1 781.956.6900*

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



Re: Problem with monitoring with JMX

2016-05-24 Thread Edwin Quijada
I read that is better use CATALINA_OPTS instead of JAVA_OPTS


From: Niranjan Babu Bommu <niranjan.bo...@gmail.com>
Sent: Tuesday, May 24, 2016 7:44 PM
To: Tomcat Users List
Subject: Re: Problem with monitoring with JMX

I think this would be JAVA_OPTS.

CATALINA_OPTS="-Xms512M -Xmx1024M -server -XX:+UseParallelGC"

On Tue, May 24, 2016 at 2:50 PM, Edwin Quijada <listas_quij...@hotmail.com>
wrote:

> Hi!
> I am trying to monitor my Tomcat server using JMX remote when I configure
> the JMX protocol when I try to start Tomcat I get this
>
> Could not load Logmanager "org.apache.juli.ClassLoaderLogManager"
> java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager
> at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> at java.util.logging.LogManager$1.run(LogManager.java:195)
> at java.util.logging.LogManager$1.run(LogManager.java:181)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.util.logging.LogManager.(LogManager.java:181)
> at java.util.logging.Logger.demandLogger(Logger.java:448)
> at java.util.logging.Logger.getLogger(Logger.java:502)
> at com.sun.jmx.remote.util.ClassLogger.(ClassLogger.java:55)
> at
> sun.management.jmxremote.ConnectorBootstrap.(ConnectorBootstrap.java:814)
> at sun.management.Agent.startAgent(Agent.java:257)
> at sun.management.Agent.startAgent(Agent.java:447)
> Can't load log handler "1catalina.org.apache.juli.AsyncFileHandler"
> java.lang.ClassNotFoundException:
> 1catalina.org.apache.juli.AsyncFileHandler
> java.lang.ClassNotFoundException:
> 1catalina.org.apache.juli.AsyncFileHandler
>
> and to the bottom I get errror :
> Error: Password file not found:
> /usr/lib/jvm/java-8-oracle/jre/lib/management/jmxremote.password
>
> but my config doesnt use password
>
> This is my setenv.sh
> CATALINA_OPTS="-Xms512M -Xmx1024M -server -XX:+UseParallelGC"
> CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote \
> -Dcom.sun.management.jmxremote.port= \
> -Dcom.sun.management.jmxremote.authenticate=false \
> -Dcom.sun.management.jmxremote.ssl=false "
>
> When I put off this configuration everything is fine and Tomcat can startup
>
> Any cluees?>
>
> #-Dcom.sun.management.jmxremote.password.file=../conf/jmxremote.password \
> #-Dcom.sun.management.jmxremote.access.file=../conf/jmxremote.access"
>
>
>


--
*Thanks*
*Niranjan*
*+1 781.956.6900*

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



Problem with monitoring with JMX

2016-05-24 Thread Edwin Quijada
Hi!
I am trying to monitor my Tomcat server using JMX remote when I configure the 
JMX protocol when I try to start Tomcat I get this

Could not load Logmanager "org.apache.juli.ClassLoaderLogManager"
java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.util.logging.LogManager$1.run(LogManager.java:195)
at java.util.logging.LogManager$1.run(LogManager.java:181)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.(LogManager.java:181)
at java.util.logging.Logger.demandLogger(Logger.java:448)
at java.util.logging.Logger.getLogger(Logger.java:502)
at com.sun.jmx.remote.util.ClassLogger.(ClassLogger.java:55)
at 
sun.management.jmxremote.ConnectorBootstrap.(ConnectorBootstrap.java:814)
at sun.management.Agent.startAgent(Agent.java:257)
at sun.management.Agent.startAgent(Agent.java:447)
Can't load log handler "1catalina.org.apache.juli.AsyncFileHandler"
java.lang.ClassNotFoundException: 1catalina.org.apache.juli.AsyncFileHandler
java.lang.ClassNotFoundException: 1catalina.org.apache.juli.AsyncFileHandler

and to the bottom I get errror :
Error: Password file not found: 
/usr/lib/jvm/java-8-oracle/jre/lib/management/jmxremote.password

but my config doesnt use password

This is my setenv.sh
CATALINA_OPTS="-Xms512M -Xmx1024M -server -XX:+UseParallelGC"
CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote \
-Dcom.sun.management.jmxremote.port= \
-Dcom.sun.management.jmxremote.authenticate=false \
-Dcom.sun.management.jmxremote.ssl=false "

When I put off this configuration everything is fine and Tomcat can startup

Any cluees?>

#-Dcom.sun.management.jmxremote.password.file=../conf/jmxremote.password \
#-Dcom.sun.management.jmxremote.access.file=../conf/jmxremote.access"




Memory Problem

2016-05-09 Thread Edwin Quijada
I am getting this error on my server
Java HotSpot(TM) 64-Bit Server VM warning: INFO: 
os::commit_memory(0x7fe63ff4, 262144, 0) failed; error='Cannot allocate 
memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 262144 bytes for committing 
reserved memory.
# An error report file with more information is saved as:
# /var/lib/tomcat8/bin/hs_err_pid14264.log
Java HotSpot(TM) 64-Bit Server VM warning: INFO: 
os::commit_memory(0x7fe64b5f8000, 12288, 0) failed; error='Cannot allocate 
memory' (errno=12)
[thread 140627084805888 also had an error]


My server has 2 GB memory and I have 1024mb for Maxmen in catalina.opts

How must be the memory amount ?


TIA


Re: Monitoring Tomcat

2016-03-31 Thread Edwin Quijada
manager-jmx security role in tomcat come with Tomcat installation ?



From: Christopher Schultz 
Sent: Wednesday, March 30, 2016 11:23 PM
To: Tomcat Users List
Subject: Re: Monitoring Tomcat

Anthony,

On 3/30/16 6:08 PM, Anthony Biacco wrote:
> On Wed, Mar 30, 2016 at 9:13 AM, Christopher Schultz <
> ch...@christopherschultz.net> wrote:
>
> Edwin,
>
>
> For my money, I wouldn't enable JMX because, for monitoring, JMX is a
> heavy-handed protocol: you either have to maintain a persistent
> connection to the server or you need to launch a whole JVM and connect
> over JMX to get e.g. a single sample value (such as current throughput).
>
> I would recommend enabling the JMXProxyServlet through the manager
> application, and then locking-down the manager application so you can
> only access it from localhost. Also use a non-trivial password for
> HTTP authentication for the manager.
>
>
>> +1
>> i was using the jmxquery jar pulled from nagios and was slooow compared to
>> the manager's jmxproxy (as would be expected).
>> i just used the the perl script from
>> https://wiki.apache.org/tomcat/FAQ/Monitoring and assigned a user to the
>> manager-jmx security role in tomcat.

Nice to see someone else is using it ;)

Feel free to contribute to it or just complain about anything you need.
I'd like for that tool to be widely-useful. I use it a lot at $work, but
it should be universally useful.

-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 commands, e-mail: users-h...@tomcat.apache.org



Re: Monitoring Tomcat

2016-03-31 Thread Edwin Quijada
Thks!!



From: Christopher Schultz <ch...@christopherschultz.net>
Sent: Wednesday, March 30, 2016 3:13 PM
To: Tomcat Users List
Subject: Re: Monitoring Tomcat

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Edwin,

On 3/29/16 2:32 PM, Edwin Quijada wrote:
> I am seeing Zabbix but about the secutiry problems with JMX

The "security problems" with JMX mostly have to do with it being very
easy to configure a server stupidly.

For example, opening a JMX port with no required authentication to the
whole Internet is, of course, tremendously stupid. But people do
stupid things like that all the time.

For my money, I wouldn't enable JMX because, for monitoring, JMX is a
heavy-handed protocol: you either have to maintain a persistent
connection to the server or you need to launch a whole JVM and connect
over JMX to get e.g. a single sample value (such as current throughput).

I would recommend enabling the JMXProxyServlet through the manager
application, and then locking-down the manager application so you can
only access it from localhost. Also use a non-trivial password for
HTTP authentication for the manager.

That ought to cover just about everything except for a local
intrusion, in which case you've already been pwned.

- -chris

>  From: Leonardo
> Santagostini <lsantagost...@gmail.com> Sent: Tuesday, March 29,
> 2016 12:20 AM To: Tomcat Users List Subject: Re: Monitoring Tomcat
>
> My two cents:
>
> You can aldo use Zabbix to Monitor your Tomcar using JMX.
>
> Also Zabbix is used from templates. So once you got one machine
> monitored as you expected you can easy deployit on other your
> machine, and the best of all, you dont nees to use apps like
> Jolokia. But bear in mind that there are some security concerns.
>
> Best regards El mar 28, 2016 8:56 p.m., "Edwin Quijada"
> <listas_quij...@hotmail.com> escribió:
>
>> Thks!
>>
>>  From: Mark Eggers
>> <its_toas...@yahoo.com.INVALID> Sent: Monday, March 28, 2016
>> 10:32 PM To: Tomcat Users List Subject: Re: Monitoring Tomcat
>>
>> https://tomcat.apache.org/tomcat-7.0-doc/monitoring.html
>> https://wiki.apache.org/tomcat/FAQ/Monitoring
>>
>> Basically enable JMX, then use a wide variety of tools to query
>> an even wider variety of information.
>>
>> Please note that there are security issues when enabling JMX.
>> Read the first link above for details.
>>
>> . . . just my two cents /mde/
>>
>> On 3/28/2016 3:23 PM, Edwin Quijada wrote:
>>> Hi! I have an app with Tomcat+Grails+Vaadin+PostgreSQL and I
>>> wanna monitor
>> the speed and resources of this. I add to 1024mb to Tomcat
>> because the app and DB is in the same server.
>>>
>>> What application can I use to monitor performance of this
>>> Tomcat ?
>>>
>>>
>>> TIA
>>>
>>
>>
>>
>> -
>>
>>
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
>
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlb77QgACgkQ9CaO5/Lv0PAcOQCeMNlr+pYLD3H6Z9k/JNR4PYm/
vSkAnRvFDAeeyrq0U/2ca04bRxcc0bfv
=DZU7
-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: Monitoring Tomcat

2016-03-29 Thread Edwin Quijada
I am seeing Zabbix but about the secutiry problems with JMX 



From: Leonardo Santagostini <lsantagost...@gmail.com>
Sent: Tuesday, March 29, 2016 12:20 AM
To: Tomcat Users List
Subject: Re: Monitoring Tomcat

My two cents:

You can aldo use Zabbix to Monitor your Tomcar using JMX.

Also Zabbix is used from templates. So once you got one machine monitored
as you expected you can easy deployit on other your machine, and the best
of all, you dont nees to use apps like Jolokia. But bear in mind that there
are some security concerns.

Best regards
El mar 28, 2016 8:56 p.m., "Edwin Quijada" <listas_quij...@hotmail.com>
escribió:

> Thks!
>
> 
> From: Mark Eggers <its_toas...@yahoo.com.INVALID>
> Sent: Monday, March 28, 2016 10:32 PM
> To: Tomcat Users List
> Subject: Re: Monitoring Tomcat
>
> https://tomcat.apache.org/tomcat-7.0-doc/monitoring.html
> https://wiki.apache.org/tomcat/FAQ/Monitoring
>
> Basically enable JMX, then use a wide variety of tools to query an even
> wider variety of information.
>
> Please note that there are security issues when enabling JMX. Read the
> first link above for details.
>
> . . . just my two cents
> /mde/
>
> On 3/28/2016 3:23 PM, Edwin Quijada wrote:
> > Hi!
> > I have an app with Tomcat+Grails+Vaadin+PostgreSQL and I wanna monitor
> the speed and resources of this. I add to 1024mb to Tomcat because the app
> and DB is in the same server.
> >
> > What application can I use to monitor performance of this Tomcat ?
> >
> >
> > TIA
> >
>
>
>
> -
> 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: Monitoring Tomcat

2016-03-29 Thread Edwin Quijada
Cool!! I dont like the name I am from Caribbean and here the moskitos are F
 :) :)
I will test now!!


From: Leon Rosenberg <rosenberg.l...@gmail.com>
Sent: Monday, March 28, 2016 10:34 PM
To: Tomcat Users List
Subject: Re: Monitoring Tomcat

Of course MoSKito:
http://www.moskito.org

Take a look at the step by step guide (start with step 1 not 0).
blog.anotheria.net/msk/the-complete-moskito-integration-guide-step-1/

regards
Leon

On Tue, Mar 29, 2016 at 12:23 AM, Edwin Quijada <listas_quij...@hotmail.com>
wrote:

> Hi!
> I have an app with Tomcat+Grails+Vaadin+PostgreSQL and I wanna monitor the
> speed and resources of this. I add to 1024mb to Tomcat because the app and
> DB is in the same server.
>
> What application can I use to monitor performance of this Tomcat ?
>
>
> TIA
>

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



Re: Monitoring Tomcat

2016-03-28 Thread Edwin Quijada
Thks!


From: Mark Eggers <its_toas...@yahoo.com.INVALID>
Sent: Monday, March 28, 2016 10:32 PM
To: Tomcat Users List
Subject: Re: Monitoring Tomcat

https://tomcat.apache.org/tomcat-7.0-doc/monitoring.html
https://wiki.apache.org/tomcat/FAQ/Monitoring

Basically enable JMX, then use a wide variety of tools to query an even
wider variety of information.

Please note that there are security issues when enabling JMX. Read the
first link above for details.

. . . just my two cents
/mde/

On 3/28/2016 3:23 PM, Edwin Quijada wrote:
> Hi!
> I have an app with Tomcat+Grails+Vaadin+PostgreSQL and I wanna monitor the 
> speed and resources of this. I add to 1024mb to Tomcat because the app and DB 
> is in the same server.
>
> What application can I use to monitor performance of this Tomcat ?
>
>
> TIA
>



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



Monitoring Tomcat

2016-03-28 Thread Edwin Quijada
Hi!
I have an app with Tomcat+Grails+Vaadin+PostgreSQL and I wanna monitor the 
speed and resources of this. I add to 1024mb to Tomcat because the app and DB 
is in the same server.

What application can I use to monitor performance of this Tomcat ?


TIA


Apache+SSL+Tomcat+WebSocket

2016-03-19 Thread Edwin Quijada
Hi!
I am trying to install apache+SSL+Tomcat with my app that use websocket. I read 
that websocket doesnt connect with tomcat and apache like proxy.

 I need information where I can connect this now I have installed Apache with 
SSL and Tomcat not connected yet. The scenario is this


BROWSE ===ssl===> APACHE WEBSERVER >TOMCAT APP


The app use websocket with the client , Can I use websocket in this scenario ?

What module is better for this job mod_proxy or mod_jk?


I am using Apache 2.4.7, Tomcat 8.0.32 , Ubuntu Server 14.04


Thks


Re: Memory and resources for Tomcat

2016-03-18 Thread Edwin Quijada
Thks, !
For postgres I dont have problem because I have xp with this but for Tomcat and 
Java and newbie with big projects .
I am using Java 8 


From: Mark Eggers <its_toas...@yahoo.com.INVALID>
Sent: Thursday, March 17, 2016 11:30 PM
To: Tomcat Users List
Subject: Re: Memory and resources for Tomcat

On 3/17/2016 3:32 PM, Edwin Quijada wrote:
> Hi! I am using Tomcat + APache +Postgres in the same machine server
> with 8GB Ram I wanna know what is the best configuration memory or
> anything else for better performance of my Tomcat?
>
> I have 400 user +-
>
>
> My app is Grails + Vaadin +PostgreSQL
>

Memory for Grails:

https://grails.org/wiki/FAQ

Search for memory on the Wiki page. However, even for trivial
applications it appears to consume 512 MB. Since you didn't say what
version of Java you're running, it's hard to tell you what (if any)
memory settings you'll need.

Tomcat by itself uses very little memory

Memory for Vaadin:

https://vaadin.com/wiki/-/wiki/main/Scalable+web+applications

There are several pieces of information concerning memory usage.

Application memory in general:

The above two links are for general information. The memory actually
used is highly dependent on your application (see notes in the second
link above). The best way to determine this is to measure (VisualVM,
Java Mission Control, etc.).

Memory for PostgreSQL:

https://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server
http://www.postgresql.org/docs/9.5/static/runtime-config-resource.html

Again, this appears to be in part connection and schema dependent.
Measurement is your only true option.

In short, use the above links to get yourself into the ballpark. Then
run your application under load and measure. Tomcat is probably the
least resource-intensive component of your architecture.

The above links are the result of less than 5 minutes of searching /
skimming using Google.

. . . just my two cents
/mde/


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



Memory and resources for Tomcat

2016-03-18 Thread Edwin Quijada
Hi!
I am using Tomcat + APache +Postgres in the same machine server with 8GB Ram I 
wanna know what is the best configuration memory or anything else for better 
performance of my Tomcat?

I have 400 user +-


My app is Grails + Vaadin +PostgreSQL


Re: Advice on Cluster in one machine

2016-03-08 Thread Edwin Quijada
Daniel, can you give the idea to do a parallel
deployment approach? What tools I need ?


From: Daniel Savard <daniel.sav...@gmail.com>
Sent: Tuesday, March 8, 2016 7:20 PM
To: Tomcat Users List
Subject: Re: Advice on Cluster in one machine

On the zero downtime deployments side, I would prefer a parallel
deployment approach. You can deploy a new version within the same
instance and have zero downtime as well without building a cluster.

I haven't experiment yet with this, but it is something I am looking
forward to test in short term.
-
Daniel Savard


2016-03-08 10:48 GMT-05:00 Christopher Schultz <ch...@christopherschultz.net>:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Edwin,
>
> On 3/8/16 8:19 AM, Edwin Quijada wrote:
>> I am new using Tomcat so I have a question about performance. I
>> have installed a cluster with 2 tomcats and apache webserver like
>> proxy in front of Tomcat cluster but this whole thing is in one
>> server, somebody tell me that is not useful beacuse is in the same
>> server that is better give more resources to one tomcat and not
>> split the resources in two.
>
> Performance-wise, your friend is right: a two-node cluster on one
> machine is going to use more resources than a single node on that machin
> e.
>
> However, running two cluster nodes on a single server isn't a
> completely stupid idea. If you want to have zero-downtime deployments,
> you can take one node down, upgrade it, then switch. So there's value
> there. As for fault-tolerance, the single point of failure is the
> whole machine: if that server isn't available, no services are available
> .
>
> That's why people usually have a hardware load balancer (fairly
> simple, fairly reliable) and several web/app servers, just in case one
> of them fails. If one node fails, the service is still available.
>
>> Somebody here can give any advice about this configuration what do
>> you think about this ? In this server I have websockets in cluster
>> and I am having problems with websockets in cluster
>
> Clustering and websockets have little to do with one another, since
> the connection goes to one node and the cluster really just manages
> things like sessions (which are orthogonal to connections, protocols,
> etc.).
>
> - -chris
> -BEGIN PGP SIGNATURE-
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iEYEARECAAYFAlbe9DcACgkQ9CaO5/Lv0PCvSACeP5LxHVddVmygYBSDCMy/bzyI
> kcsAoMRRZOREaWubUGJFrviRSx/cVAUK
> =1OIe
> -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


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



Re: Advice on Cluster in one machine

2016-03-08 Thread Edwin Quijada



From: Christopher Schultz <ch...@christopherschultz.net>
Sent: Tuesday, March 8, 2016 3:48 PM
To: Tomcat Users List
Subject: Re: Advice on Cluster in one machine

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Edwin,

On 3/8/16 8:19 AM, Edwin Quijada wrote:
> I am new using Tomcat so I have a question about performance. I
> have installed a cluster with 2 tomcats and apache webserver like
> proxy in front of Tomcat cluster but this whole thing is in one
> server, somebody tell me that is not useful beacuse is in the same
> server that is better give more resources to one tomcat and not
> split the resources in two.

Performance-wise, your friend is right: a two-node cluster on one
machine is going to use more resources than a single node on that machin
e.

However, running two cluster nodes on a single server isn't a
completely stupid idea. If you want to have zero-downtime deployments,
you can take one node down, upgrade it, then switch. So there's value
there. As for fault-tolerance, the single point of failure is the
whole machine: if that server isn't available, no services are available
.

That's why people usually have a hardware load balancer (fairly
simple, fairly reliable) and several web/app servers, just in case one
of them fails. If one node fails, the service is still available.

> Somebody here can give any advice about this configuration what do
> you think about this ? In this server I have websockets in cluster
> and I am having problems with websockets in cluster

Clustering and websockets have little to do with one another, since
the connection goes to one node and the cluster really just manages
things like sessions (which are orthogonal to connections, protocols,
etc.).

OK, so if I want to run my app like myserver.com I can use apache like reverse 
proxy to do this and still working with websockets , I want to do this 
something like this 

Apache -> Tomcat -> DB

but the websocket still works ?



-
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: Advice on Cluster in one machine

2016-03-08 Thread Edwin Quijada



From: André Warnier (tomcat) <a...@ice-sa.com>
Sent: Tuesday, March 8, 2016 1:46 PM
To: users@tomcat.apache.org
Subject: Re: Advice on Cluster in one machine

On 08.03.2016 14:19, Edwin Quijada wrote:
> Hi!
> I am new using Tomcat so I have a question about performance. I have 
> installed a cluster with 2 tomcats and apache webserver like proxy in front 
> of Tomcat cluster but this whole thing is in one server, somebody tell me 
> that is not useful beacuse is in the same server that is better give more 
> resources to one tomcat and not split the resources in two.
>
> Somebody here can give any advice about this configuration what do you think 
> about this ? In this server I have websockets in cluster and I am having 
> problems with websockets in cluster
>
>
> Any advice ?
>

Hi.

If you *really* want to test which of the configurations provides the best 
results with
your particular caseload, then you will have a lot of work ahead of you to 
build a
representative workload and an appropriate test/measurement framework.

Non-authoritative advice :

Intuitively, just the fact of having a front-end and a cluster configuration 
all on the
same server, will already introduce a significant overhead which a simpler 
configuration
would not have.

Intuitively thus, I would recommend to try the simplest configuration first, 
and only if
you see problems, then measure what the problem is, and come back for help here.
No need to over-complicate your setup and maintenance before then.

Unless you need it also for something else, forget the httpd front-end and the 
clustered
Tomcats, and have a single Tomcat act directly as the webserver/websocket 
server.


OK, thks. 
I did this configuration because I will use a lot of users to my app . Someboyd 
told me that for this case is much better to use Apache like proxy to redirect 
request to Tomcat besides dont use port 8080 . I have used Tomcat as webapp 
before always using 8080 port but now I wanted dont use the port 8080 just use 
myserver.com/app1 or use subdomains for app.

I take your advice.


-
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



Advice on Cluster in one machine

2016-03-08 Thread Edwin Quijada
Hi!
I am new using Tomcat so I have a question about performance. I have installed 
a cluster with 2 tomcats and apache webserver like proxy in front of Tomcat 
cluster but this whole thing is in one server, somebody tell me that is not 
useful beacuse is in the same server that is better give more resources to one 
tomcat and not split the resources in two.

Somebody here can give any advice about this configuration what do you think 
about this ? In this server I have websockets in cluster and I am having 
problems with websockets in cluster


Any advice ?


Thks In Advance


I need expert to solve problem(pay)

2016-02-04 Thread Edwin Quijada
Hi!
I dont know if I must put this message here but I am exhaust about this. I need 
a tomcat expert about configuration to solve a problem with my installation of 
course  I will pay for your service.

The problem is just configuration but I dont want stuck anymore.


Sorry if the rigth place is not here


Re: I need expert to solve problem(pay)

2016-02-04 Thread Edwin Quijada
Rx Msg:30,000 messages
Rx Speed:0.00 MB/sec (since 1st msg)
Received:20.42 MB]

02-Feb-2016 05:32:47.763 INFO [Tribes-Task-Receiver-6] 
org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor.report 
ThroughputInterceptor Report[
Tx Msg:30,000 messages
Sent:20.43 MB (total)
Sent:20.43 MB (application)
Time:5.72 seconds
Tx Speed:3.57 MB/sec (total)
TxSpeed:3.57 MB/sec (application)
Error Msg:0
Rx Msg:30,001 messages
Rx Speed:0.00 MB/sec (since 1st msg)
Received:20.42 MB]

02-Feb-2016 09:01:11.617 INFO [Tribes-Task-Receiver-5] 
org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor.report 
ThroughputInterceptor Report[
Tx Msg:40,000 messages
Sent:27.23 MB (total)
Sent:27.24 MB (application)
Time:7.38 seconds
Tx Speed:3.69 MB/sec (total)
TxSpeed:3.69 MB/sec (application)
Error Msg:0
Rx Msg:40,000 messages
Rx Speed:0.00 MB/sec (since 1st msg)
Received:27.23 MB]

02-Feb-2016 09:01:11.618 INFO [GroupChannel-Heartbeat-1] 
org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor.report 
ThroughputInterceptor Report[
Tx Msg:40,001 messages
Sent:27.24 MB (total)
Sent:27.24 MB (application)
Time:7.38 seconds
Tx Speed:3.69 MB/sec (total)
TxSpeed:3.69 MB/sec (application)
Error Msg:0
Rx Msg:40,002 messages
Rx Speed:0.00 MB/sec (since 1st msg)
Received:27.23 MB]

02-Feb-2016 12:29:35.561 INFO [Tribes-Task-Receiver-2] 
org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor.report 
ThroughputInterceptor Report[
Tx Msg:49,999 messages
Sent:34.04 MB (total)
Sent:34.04 MB (application)
Time:8.99 seconds
Tx Speed:3.79 MB/sec (total)
TxSpeed:3.79 MB/sec (application)
Error Msg:0
Rx Msg:50,000 messages
Rx Speed:0.00 MB/sec (since 1st msg)
Received:34.04 MB]

02-Feb-2016 12:29:36.108 INFO [GroupChannel-Heartbeat-1] 
org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor.report 
ThroughputInterceptor Report[
Tx Msg:50,000 messages
Sent:34.04 MB (total)
Sent:34.05 MB (application)
Time:8.99 seconds
Tx Speed:3.79 MB/sec (total)
TxSpeed:3.79 MB/sec (application)
Error Msg:0
Rx Msg:50,001 messages
Rx Speed:0.00 MB/sec (since 1st msg)
Received:34.04 MB]

02-Feb-2016 15:57:59.873 INFO [Tribes-Task-Receiver-1] 
org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor.report 
ThroughputInterceptor Report[
Tx Msg:59,999 messages
Sent:40.85 MB (total)
Sent:40.85 MB (application)
Time:10.64 seconds
Tx Speed:3.84 MB/sec (total)
TxSpeed:3.84 MB/sec (application)
Error Msg:0
Rx Msg:60,000 messages
Rx Speed:0.00 MB/sec (since 1st msg)
Received:40.85 MB]

02-Feb-2016 15:58:00.431 INFO [GroupChannel-Heartbeat-1] 
org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor.report 
ThroughputInterceptor Report[
Tx Msg:60,000 messages
Sent:40.85 MB (total)
Sent:40.85 MB (application)
Time:10.64 seconds
Tx Speed:3.84 MB/sec (total)
TxSpeed:3.84 MB/sec (application)
Error Msg:0
Rx Msg:60,001 messages
Rx Speed:0.00 MB/sec (since 1st msg)
Received:40.85 MB]



From: Aurélien Terrestris <aterrest...@gmail.com>
Sent: Thursday, February 4, 2016 7:53 PM
To: Tomcat Users List
Subject: Re: I need expert to solve problem(pay)

Edwin, we're not expecting money here. Please tell us what your problem is.

2016-02-04 20:37 GMT+01:00 Edwin Quijada <listas_quij...@hotmail.com>:

> Hi!
> I dont know if I must put this message here but I am exhaust about this. I
> need a tomcat expert about configuration to solve a problem with my
> installation of course  I will pay for your service.
>
> The problem is just configuration but I dont want stuck anymore.
>
>
> Sorry if the rigth place is not here
>

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



Re: Problem with Tomcat Cluster

2016-02-03 Thread Edwin Quijada
Well, I have a clustered , I dont test in non clustered environment


From: Mikel Ibiricu <jlumi...@gmail.com>
Sent: Wednesday, February 3, 2016 5:32 AM
To: Tomcat Users List
Subject: Re: Problem with Tomcat Cluster

Are you sure it starts in non-clustered environment? It sounda to me to be
just a spring initialization error.
El 02/02/2016 22:40, "Edwin Quijada" <listas_quij...@hotmail.com> escribió:

> Hi!
> I have a Tomcat cluster over Debian Jessie, Tomcat 8.0.29 2 instances ,
> PostgreSQL 9.5 ,Apache 2.4 , Mod_jk. When I try to run my project in this
> environment I get eerror. I tested with examples project and it works fine.
> My log iis this
>
>
> 01-Feb-2016 19:07:39.474 SEVERE [main]
> org.apache.catalina.ha.deploy.FarmWarDeployer.start FarmWarDeployer can
> only work as host cluster subelement!
> 01-Feb-2016 19:07:39.537 INFO [localhost-startStop-1]
> org.apache.catalina.startup.HostConfig.deployWAR Despliegue del archivo
> /opt/tomcat8_nodo1/webapps/clusterjsp.war de la aplicación web
> 01-Feb-2016 19:07:40.886 INFO
> [MessageDispatch15Interceptor.MessageDispatchThread1]
> org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor.report
> ThroughputInterceptor Report[
> Tx Msg:1 messages
> Sent:0.00 MB (total)
> Sent:0.00 MB (application)
> Time:0.01 seconds
> Tx Speed:0.06 MB/sec (total)
> TxSpeed:0.06 MB/sec (application)
> Error Msg:0
> Rx Msg:2 messages
> Rx Speed:0.00 MB/sec (since 1st msg)
> Received:0.00 MB]
>
> 01-Feb-2016 19:07:42.068 INFO [localhost-startStop-1]
> org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation
> of SecureRandom instance for session ID generation using [SHA1PRNG] took
> [1.489] milliseconds.
> 01-Feb-2016 19:07:42.088 INFO [localhost-startStop-1]
> org.apache.catalina.tribes.tipis.AbstractReplicatedMap.init Initializing
> AbstractReplicatedMap with context name:localhost#/clusterjsp-map
> 01-Feb-2016 19:07:42.310 INFO [localhost-startStop-1]
> org.apache.catalina.tribes.tipis.AbstractReplicatedMap.init
> AbstractReplicatedMap[localhost#/clusterjsp-map] initialization was
> completed in 222 ms.
> 01-Feb-2016 19:07:42.585 INFO [localhost-startStop-1]
> org.apache.catalina.startup.HostConfig.deployWAR Deployment of web
> application archive /opt/tomcat8_nodo1/webapps/clusterjsp.war has finished
> in 3.048 ms
> 01-Feb-2016 19:07:45.652 INFO [localhost-startStop-1]
> org.apache.catalina.startup.HostConfig.deployWAR Despliegue del archivo
> /opt/tomcat8_nodo1/webapps/abacus.war de la aplicación web
> 01-Feb-2016 19:14:05.387 INFO [localhost-startStop-1]
> org.apache.jasper.servlet.TldScanner.scanJars Al menos un JAR, que se ha
> explorado buscando TLDs, aún no contenía TLDs. Activar historial de
> depuración para este historiador para una completa lista de los JARs que
> fueron explorados y de los que nos se halló TLDs. Saltarse JARs no
> necesarios durante la exploración puede dar lugar a una mejora de tiempo
> significativa en el arranque y compilación de JSP .
> feb 01, 2016 7:14:05 PM org.apache.catalina.core.ApplicationContext log
> INFORMACIÓN: Initializing AtmosphereFramework
> feb 01, 2016 7:14:05 PM org.apache.catalina.core.ApplicationContext log
> INFORMACIÓN: No Spring WebApplicationInitializer types detected on
> classpath
> feb 01, 2016 7:14:06 PM org.apache.catalina.core.ApplicationContext log
> INFORMACIÓN: Initializing Spring root WebApplicationContext
> feb 01, 2016 7:14:54 PM org.apache.tomcat.jdbc.pool.ConnectionPool init
> ADVERTENCIA: maxActive is smaller than 1, setting maxActive to: 100
> 2016-02-01 19:14:59,345 [localhost-startStop-1] ERROR
> context.GrailsContextLoaderListener  - Error initializing the application:
> Error creating bean with name
> 'org.springframework.context.annotation.internalAsyncAnnotationProcessor'
> defined in class path resource
> [org/springframework/scheduling/annotation/ProxyAsyncConfiguration.class]:
> Instantiation of bean failed; nested exception is
> org.springframework.beans.factory.BeanDefinitionStoreException: Factory
> method [public
> org.springframework.scheduling.annotation.AsyncAnnotationBeanPostProcessor
> org.springframework.scheduling.annotation.ProxyAsyncConfiguration.asyncAdvisor()]
> threw exception; nested exception is java.lang.IllegalArgumentException:
> @EnableAsync annotation metadata was not injected
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name
> 'org.springframework.context.annotation.internalAsyncAnnotationProcessor'
> defined in class path resource
> [org/springframework/scheduling/

Problem with Tomcat Cluster

2016-02-02 Thread Edwin Quijada
Hi!
I have a Tomcat cluster over Debian Jessie, Tomcat 8.0.29 2 instances , 
PostgreSQL 9.5 ,Apache 2.4 , Mod_jk. When I try to run my project in this 
environment I get eerror. I tested with examples project and it works fine. My 
log iis this


01-Feb-2016 19:07:39.474 SEVERE [main] 
org.apache.catalina.ha.deploy.FarmWarDeployer.start FarmWarDeployer can only 
work as host cluster subelement!
01-Feb-2016 19:07:39.537 INFO [localhost-startStop-1] 
org.apache.catalina.startup.HostConfig.deployWAR Despliegue del archivo 
/opt/tomcat8_nodo1/webapps/clusterjsp.war de la aplicación web
01-Feb-2016 19:07:40.886 INFO 
[MessageDispatch15Interceptor.MessageDispatchThread1] 
org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor.report 
ThroughputInterceptor Report[
Tx Msg:1 messages
Sent:0.00 MB (total)
Sent:0.00 MB (application)
Time:0.01 seconds
Tx Speed:0.06 MB/sec (total)
TxSpeed:0.06 MB/sec (application)
Error Msg:0
Rx Msg:2 messages
Rx Speed:0.00 MB/sec (since 1st msg)
Received:0.00 MB]

01-Feb-2016 19:07:42.068 INFO [localhost-startStop-1] 
org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of 
SecureRandom instance for session ID generation using [SHA1PRNG] took [1.489] 
milliseconds.
01-Feb-2016 19:07:42.088 INFO [localhost-startStop-1] 
org.apache.catalina.tribes.tipis.AbstractReplicatedMap.init Initializing 
AbstractReplicatedMap with context name:localhost#/clusterjsp-map
01-Feb-2016 19:07:42.310 INFO [localhost-startStop-1] 
org.apache.catalina.tribes.tipis.AbstractReplicatedMap.init 
AbstractReplicatedMap[localhost#/clusterjsp-map] initialization was completed 
in 222 ms.
01-Feb-2016 19:07:42.585 INFO [localhost-startStop-1] 
org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application 
archive /opt/tomcat8_nodo1/webapps/clusterjsp.war has finished in 3.048 ms
01-Feb-2016 19:07:45.652 INFO [localhost-startStop-1] 
org.apache.catalina.startup.HostConfig.deployWAR Despliegue del archivo 
/opt/tomcat8_nodo1/webapps/abacus.war de la aplicación web
01-Feb-2016 19:14:05.387 INFO [localhost-startStop-1] 
org.apache.jasper.servlet.TldScanner.scanJars Al menos un JAR, que se ha 
explorado buscando TLDs, aún no contenía TLDs. Activar historial de depuración 
para este historiador para una completa lista de los JARs que fueron explorados 
y de los que nos se halló TLDs. Saltarse JARs no necesarios durante la 
exploración puede dar lugar a una mejora de tiempo significativa en el arranque 
y compilación de JSP .
feb 01, 2016 7:14:05 PM org.apache.catalina.core.ApplicationContext log
INFORMACIÓN: Initializing AtmosphereFramework
feb 01, 2016 7:14:05 PM org.apache.catalina.core.ApplicationContext log
INFORMACIÓN: No Spring WebApplicationInitializer types detected on classpath
feb 01, 2016 7:14:06 PM org.apache.catalina.core.ApplicationContext log
INFORMACIÓN: Initializing Spring root WebApplicationContext
feb 01, 2016 7:14:54 PM org.apache.tomcat.jdbc.pool.ConnectionPool init
ADVERTENCIA: maxActive is smaller than 1, setting maxActive to: 100
2016-02-01 19:14:59,345 [localhost-startStop-1] ERROR 
context.GrailsContextLoaderListener  - Error initializing the application: 
Error creating bean with name 
'org.springframework.context.annotation.internalAsyncAnnotationProcessor' 
defined in class path resource 
[org/springframework/scheduling/annotation/ProxyAsyncConfiguration.class]: 
Instantiation of bean failed; nested exception is 
org.springframework.beans.factory.BeanDefinitionStoreException: Factory method 
[public 
org.springframework.scheduling.annotation.AsyncAnnotationBeanPostProcessor 
org.springframework.scheduling.annotation.ProxyAsyncConfiguration.asyncAdvisor()]
 threw exception; nested exception is java.lang.IllegalArgumentException: 
@EnableAsync annotation metadata was not injected
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 
'org.springframework.context.annotation.internalAsyncAnnotationProcessor' 
defined in class path resource 
[org/springframework/scheduling/annotation/ProxyAsyncConfiguration.class]: 
Instantiation of bean failed; nested exception is 
org.springframework.beans.factory.BeanDefinitionStoreException: Factory method 
[public 
org.springframework.scheduling.annotation.AsyncAnnotationBeanPostProcessor 
org.springframework.scheduling.annotation.ProxyAsyncConfiguration.asyncAdvisor()]
 threw exception; nested exception is java.lang.IllegalArgumentException: 
@EnableAsync annotation metadata was not injected
at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: 

Re: Apache+SSL+ Tomcat How ?

2016-01-22 Thread Edwin Quijada
Thks!


From: Christopher Schultz <ch...@christopherschultz.net>
Sent: Thursday, January 21, 2016 12:15 PM
To: Tomcat Users List
Subject: Re: Apache+SSL+ Tomcat How ?

George,

On 1/19/16 7:11 PM, George Sexton wrote:
>
>
> On 1/19/2016 3:50 PM, Edwin Quijada wrote:
>> Hi!
>>
>> I have 2 instances Tomcat with Apache in front of him working like
>> proxy. Now, I need to know how can I do for using SSL for my app.
>> There is any documento to set Apache + SSL for Tomcat to protected my
>> info.
>
> The standard HOWTO for Apache httpd would apply. There's no specific
> tomcat differences.

+1

If you are using mod_jk, then all the TLS stuff is transparent to
Tomcat. In fact, mod_jk specifically will forward by default all the
information you will need on the Tomcat side to enforce e.g.
CONFIDENTIAL security-constraints.

If you decide to use mod_proxy_ajp or mod_proxy_http, you may need
additional configuration to forward that information to Tomcat and use it.

-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 commands, e-mail: users-h...@tomcat.apache.org



Apache+SSL+ Tomcat How ?

2016-01-19 Thread Edwin Quijada
Hi!

I have 2 instances Tomcat with Apache in front of him working like proxy. Now, 
I need to know how can I do for using SSL for my app. There is any documento to 
set Apache + SSL for Tomcat to protected my info.


I am using Apache 2.4 with Mod_JK + Tomcat 8.022


Any help ?



Upload big file for data

2016-01-11 Thread Edwin Quijada
Hi!
I am newbie using Tomcat and I have a problem uploadind a Big file. I wanna 
upload a big file CSV, 140 mb, but when this begins doesnt happen anything . 
There is any setting to change for allowing to upload this file. This file has 
record will be procesed into my app.


Thks in Advance