RE: Application hanging on Tomcat 7.0.54

2018-09-26 Thread Jäkel , Guido
Dear Louis,

I would recommend to use a tool like JVisualVM (with Plugins*) to take a look 
on this things while it's still running or have blocked. You may live watch 
things like running threads or the Java heap occupation or investigate JVM, 
Java and Tomcat parameters (and even run some actions) via JMX with 
"MBean-Explorer". You may trigger to generate a heap dump or force FullGC and 
even do CPU or Memory profiling.

The Tomcat JDBC Connection Pool for instance provide a MBean view for every 
connection with it's parameters. You may live watch the number of active, idle, 
... connections (with a "well hidden" chart feature: Double-Click to expand 
some value representations; this here to a chart)

Tomcat (i.e. Catalina) have something like a running request scoreboard, also. 
You may take and identify from that all long running or blocked requests. On 
the MBean, it's at 
"Catalina|RequestProcessor|||currentURI" and 
corresponding parameters.


(*) You would have to install some plugins inside the JVisualVM Tool, e.g. 
"Visual GC", "VisualVM Buffer Monitor", "Thread Inspector", "VisualVM BMeans"

Greetings

Guido

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



Re: Connection refused: connect

2018-09-26 Thread Guang Chao
On Fri, Sep 21, 2018 at 4:54 PM Karen Goh 
wrote:

> Hi,
>
> I am repeatedly getting the following exceptions and am stuck here like
> forever.
>
> Hope someone can tell me what's wrong with my tomcat server  version:
> 8.5.24 with Eclipse
>
>
> java.net.ConnectException: Connection refused: connect
> at java.net.DualStackPlainSocketImpl.connect0(Native Method)
> at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
> at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
> at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown
> Source)
> at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
> at java.net.PlainSocketImpl.connect(Unknown Source)
> at java.net.SocksSocketImpl.connect(Unknown Source)
> at java.net.Socket.connect(Unknown Source)
> at java.net.Socket.connect(Unknown Source)
> at java.net.Socket.(Unknown Source)
> at java.net.Socket.(Unknown Source)
> at
> org.eclipse.jdi.internal.connect.SocketTransportService$2.run(SocketTransportService.java:148)
> at java.lang.Thread.run(Unknown Source)
>
> Tks.
>

Can I assume that what you are trying to do are the following?

- You downloaded Tomcat 8 and extracted somewhere on hard drive
- You created a web project in Eclipse
- You created new Server Runtime by adding in preferences and specifying
the path of your Tomcat 8
- You run your web project using the runtime



>
> --- On Sat, 9/15/18, Karen Goh  wrote:
>
> > From: Karen Goh 
> > Subject: Error: Could not find or load main class set
> > To: users@tomcat.apache.org
> > Date: Saturday, September 15, 2018, 2:50 PM
> > Hi,
> >
> > I am now getting the above error.
> > There is no further error stacktrace from error log or
> > console etc.
> >
> > So far, I have deleted the server and
> > created new instances but still getting the same error.
> >
> > I have read the following solutions but
> > they are not helpful
> >
> >
> http://www.java67.com/2016/09/3-ways-to-solve-eclipse-main-class-not-found-error-java.html
> >
> >
> https://www.researchgate.net/post/How_to_solve_Error_Could_not_find_or_load_main_class
> >
> > Please help.
> >
> > Tks,
> > Karen
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

-- 
Guang 


Re: Application hanging on Tomcat 7.0.54

2018-09-26 Thread Guang Chao
On Thu, Sep 27, 2018 at 3:56 AM Louis Zipes  wrote:

> Problem just re-occurred and so I was able to at least get a JSTACK  (I
> assume it was Tomcat since it was the Java using the most memory on the
> machine).  Here is the reoccurring message.  I get more hits on but haven't
> dug through all of the Google hits yet (due to multi-tasking) so apologies
> up front if there is a simple answer to this.
>
> "Event_Manager_1413" daemon prio=6 tid=0x24856000 nid=0x40c4
> waiting on condition [0x42dae000]
>java.lang.Thread.State: TIMED_WAITING (parking)
> at sun.misc.Unsafe.park(Native Method)
> - parking to wait for  <0x0005ab45f7b8> (a
> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
> at java.util.concurrent.locks.LockSupport.parkNanos(Unknown Source)
> at
> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(Unknown
> Source)
> at java.util.concurrent.LinkedBlockingQueue.poll(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source)
>
>
Do you lock from memory or database?  Make sure locking sequence is
consistent all across the application.  Meaning if you have

Lock A
Lock B
Lock C

You dont want another logic that locks something in another order.  E.g.

Lock B
Lock A
Lock C

Because that will cause deadlocks.



>Locked ownable synchronizers:
> - None
>
> > Any comments/suggestions are appreciated!
>
> Your most likely problem is database connection pool mismanagement:
> connections aren't properly released and the pool empties. All threads
> are left waiting on available database connections which will never be
> replenished.
>
> I'm using the ojdbc6.jar if that is what you are referring to or is there
> a better setting somewhere.
>

What db connection pool are you using? Are you letting tomcat manage it via
Context.xml and get connection via JNDI?  Or are you managing inside the
application?


>
> -Original Message-
> From: Christopher Schultz [mailto:ch...@christopherschultz.net]
> Sent: Wednesday, September 26, 2018 3:46 PM
> To: users@tomcat.apache.org
> Subject: Re: Application hanging on Tomcat 7.0.54
>
> - - - external message, proceed with caution - - -
>
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Louis,
>
> On 9/26/18 14:42, Louis Zipes wrote:
> > Hi all, Tomcat 7.0.54 running on Windows 2012
> >
> > We are running a third party application on Tomcat and today we
> > have intermittently run in issues where the application stops
> > working.  The big changes in our system is that we have added more
> > end users and we are at year end so of course everyone is hitting
> > the system hard. Even if we force a log out of all users and stop
> > all background jobs then the application doesn't recover.
> >
> > We see no active sessions on the database (our application is
> > connecting to an Oracle database) and I see no clear error messages
> > in either our third party application logs or the Tomcat logs (ex.
> > OutofMemory).  When we go to the Windows Task Manager we did not
> > see the machine's Memory max'd out but admittedly I didn't look at
> > the Java session to see if was reaching its Heap Max.  The only
> > thing that we noticed was that TCP connections went down right
> > after the restart.  I did open up Jconsole under Java and I did
> > force a garbage collection but that didn't seem to help.
> >
> > We do have an Oracle Grid Control and we did get an alert in
> > regards to Metric: [HTTP Transaction] Perceived Time per Page going
> > past thresholds but not sure if that was just an old alert with and
> > old range that was set up a long time ago or is a really valid
> > clue.Since this is PRD we had to get it back up and running so
> > all I did was increase the Tomcat Xmx Heap size and restarted.  I'm
> > not really confident that is the solution since as mentioned you
> > tend to see a clear out of memory error if it was too small.
> >
> > So a few questions:
> >
> >
> > 1) Does this sound like a known issue with this earlier version
> > of Tomcat?
>
> No.
>
> > 2) Should I turn up any logging on Tomcat and if so which
> > ones?
>
> Not yet.
>
> > 3) We didn't do a JSTACK dump while it was happening.  Would
> > that have been useful?
>
> Absolutely.
>
> > 4) Do we need to play around with MaxThreads and/or
> > MaxConnections.  We do have maxThreads in our server.mxl but in DEV
> > when we turned it down to a value = 5  hoping to overwhelm it
> > nothing bad happened.
>
> Don't change anything, yet.
>
> > Once again, we are limited to what we could do and collect since it
> > was PRD and we needed to restart it.  We restarted the Tomcat
> > service and everything is processing fine for right now.  I will
> > note that that we did have that bad Windows pa

Re: Application hanging on Tomcat 7.0.54

2018-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Louis,

On 9/26/18 15:56, Louis Zipes wrote:
> Problem just re-occurred and so I was able to at least get a JSTACK
> (I assume it was Tomcat since it was the Java using the most memory
> on the machine).  Here is the reoccurring message.  I get more hits
> on but haven't dug through all of the Google hits yet (due to
> multi-tasking) so apologies up front if there is a simple answer to
> this.
> 
> "Event_Manager_1413" daemon prio=6 tid=0x24856000
> nid=0x40c4 waiting on condition [0x42dae000] 
> java.lang.Thread.State: TIMED_WAITING (parking) at
> sun.misc.Unsafe.park(Native Method) - parking to wait for
> <0x0005ab45f7b8> (a
> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
>
> 
at java.util.concurrent.locks.LockSupport.parkNanos(Unknown Source)
> at
> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.
awaitNanos(Unknown
> Source) at java.util.concurrent.LinkedBlockingQueue.poll(Unknown
> Source) at java.util.concurrent.ThreadPoolExecutor.getTask(Unknown
> Source) at
> java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
> Source) at java.lang.Thread.run(Unknown Source)

This thread is waiting for a task, and is essentially idle. You will
have many of these on a non-busy system.

What are the other threads doing?

> Locked ownable synchronizers: - None
> 
>> Any comments/suggestions are appreciated!
> 
> Your most likely problem is database connection pool
> mismanagement: connections aren't properly released and the pool
> empties. All threads are left waiting on available database
> connections which will never be replenished.
> 
> I'm using the ojdbc6.jar if that is what you are referring to or is
> there a better setting somewhere.

ODBC? What is your database?

- -chris


> -Original Message- From: Christopher Schultz
> [mailto:ch...@christopherschultz.net] Sent: Wednesday, September
> 26, 2018 3:46 PM To: users@tomcat.apache.org Subject: Re:
> Application hanging on Tomcat 7.0.54
> 
> - - - external message, proceed with caution - - -
> 
> 
> Louis,
> 
> On 9/26/18 14:42, Louis Zipes wrote:
>> Hi all, Tomcat 7.0.54 running on Windows 2012
> 
>> We are running a third party application on Tomcat and today we 
>> have intermittently run in issues where the application stops 
>> working.  The big changes in our system is that we have added
>> more end users and we are at year end so of course everyone is
>> hitting the system hard. Even if we force a log out of all users
>> and stop all background jobs then the application doesn't
>> recover.
> 
>> We see no active sessions on the database (our application is 
>> connecting to an Oracle database) and I see no clear error
>> messages in either our third party application logs or the Tomcat
>> logs (ex. OutofMemory).  When we go to the Windows Task Manager
>> we did not see the machine's Memory max'd out but admittedly I
>> didn't look at the Java session to see if was reaching its Heap
>> Max.  The only thing that we noticed was that TCP connections
>> went down right after the restart.  I did open up Jconsole under
>> Java and I did force a garbage collection but that didn't seem to
>> help.
> 
>> We do have an Oracle Grid Control and we did get an alert in 
>> regards to Metric: [HTTP Transaction] Perceived Time per Page
>> going past thresholds but not sure if that was just an old alert
>> with and old range that was set up a long time ago or is a really
>> valid clue.Since this is PRD we had to get it back up and
>> running so all I did was increase the Tomcat Xmx Heap size and
>> restarted.  I'm not really confident that is the solution since
>> as mentioned you tend to see a clear out of memory error if it
>> was too small.
> 
>> So a few questions:
> 
> 
>> 1) Does this sound like a known issue with this earlier
>> version of Tomcat?
> 
> No.
> 
>> 2) Should I turn up any logging on Tomcat and if so which 
>> ones?
> 
> Not yet.
> 
>> 3) We didn't do a JSTACK dump while it was happening.  Would 
>> that have been useful?
> 
> Absolutely.
> 
>> 4) Do we need to play around with MaxThreads and/or 
>> MaxConnections.  We do have maxThreads in our server.mxl but in
>> DEV when we turned it down to a value = 5  hoping to overwhelm
>> it nothing bad happened.
> 
> Don't change anything, yet.
> 
>> Once again, we are limited to what we could do and collect since
>> it was PRD and we needed to restart it.  We restarted the Tomcat 
>> service and everything is processing fine for right now.  I will 
>> note that that we did have that bad Windows patch that prevented
>> it from stopping and starting cleanly 
>> (https://stackoverflow.com/questions/51498291/tomcat-lockup-on-shutdo
w
>
>> 
n)
>> but we have taken the break fix patch and the daily restarts
>> seem to be fine since then.
> 
>> Any comments/suggestions are appreciated!
> 
> Your 

RE: Application hanging on Tomcat 7.0.54

2018-09-26 Thread Louis Zipes
Problem just re-occurred and so I was able to at least get a JSTACK  (I assume 
it was Tomcat since it was the Java using the most memory on the machine).  
Here is the reoccurring message.  I get more hits on but haven't dug through 
all of the Google hits yet (due to multi-tasking) so apologies up front if 
there is a simple answer to this.

"Event_Manager_1413" daemon prio=6 tid=0x24856000 nid=0x40c4 waiting on 
condition [0x42dae000]
   java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for  <0x0005ab45f7b8> (a 
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.parkNanos(Unknown Source)
at 
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(Unknown
 Source)
at java.util.concurrent.LinkedBlockingQueue.poll(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

   Locked ownable synchronizers:
- None

> Any comments/suggestions are appreciated!

Your most likely problem is database connection pool mismanagement:
connections aren't properly released and the pool empties. All threads
are left waiting on available database connections which will never be
replenished.

I'm using the ojdbc6.jar if that is what you are referring to or is there a 
better setting somewhere.

-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net]
Sent: Wednesday, September 26, 2018 3:46 PM
To: users@tomcat.apache.org
Subject: Re: Application hanging on Tomcat 7.0.54

- - - external message, proceed with caution - - -


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Louis,

On 9/26/18 14:42, Louis Zipes wrote:
> Hi all, Tomcat 7.0.54 running on Windows 2012
>
> We are running a third party application on Tomcat and today we
> have intermittently run in issues where the application stops
> working.  The big changes in our system is that we have added more
> end users and we are at year end so of course everyone is hitting
> the system hard. Even if we force a log out of all users and stop
> all background jobs then the application doesn't recover.
>
> We see no active sessions on the database (our application is
> connecting to an Oracle database) and I see no clear error messages
> in either our third party application logs or the Tomcat logs (ex.
> OutofMemory).  When we go to the Windows Task Manager we did not
> see the machine's Memory max'd out but admittedly I didn't look at
> the Java session to see if was reaching its Heap Max.  The only
> thing that we noticed was that TCP connections went down right
> after the restart.  I did open up Jconsole under Java and I did
> force a garbage collection but that didn't seem to help.
>
> We do have an Oracle Grid Control and we did get an alert in
> regards to Metric: [HTTP Transaction] Perceived Time per Page going
> past thresholds but not sure if that was just an old alert with and
> old range that was set up a long time ago or is a really valid
> clue.Since this is PRD we had to get it back up and running so
> all I did was increase the Tomcat Xmx Heap size and restarted.  I'm
> not really confident that is the solution since as mentioned you
> tend to see a clear out of memory error if it was too small.
>
> So a few questions:
>
>
> 1) Does this sound like a known issue with this earlier version
> of Tomcat?

No.

> 2) Should I turn up any logging on Tomcat and if so which
> ones?

Not yet.

> 3) We didn't do a JSTACK dump while it was happening.  Would
> that have been useful?

Absolutely.

> 4) Do we need to play around with MaxThreads and/or
> MaxConnections.  We do have maxThreads in our server.mxl but in DEV
> when we turned it down to a value = 5  hoping to overwhelm it
> nothing bad happened.

Don't change anything, yet.

> Once again, we are limited to what we could do and collect since it
> was PRD and we needed to restart it.  We restarted the Tomcat
> service and everything is processing fine for right now.  I will
> note that that we did have that bad Windows patch that prevented it
> from stopping and starting cleanly
> (https://stackoverflow.com/questions/51498291/tomcat-lockup-on-shutdow
n)
> but we have taken the break fix patch and the daily restarts seem
> to be fine since then.
>
> Any comments/suggestions are appreciated!

Your most likely problem is database connection pool mismanagement:
connections aren't properly released and the pool empties. All threads
are left waiting on available database connections which will never be
replenished.

- -chris
-BEGIN PGP SIGNATURE-
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlur4fgACgkQHPApP6U8
pFhq/RAAwZixHqbHxYdX3VC

Re: Application hanging on Tomcat 7.0.54

2018-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Louis,

On 9/26/18 14:42, Louis Zipes wrote:
> Hi all, Tomcat 7.0.54 running on Windows 2012
> 
> We are running a third party application on Tomcat and today we
> have intermittently run in issues where the application stops
> working.  The big changes in our system is that we have added more
> end users and we are at year end so of course everyone is hitting
> the system hard. Even if we force a log out of all users and stop
> all background jobs then the application doesn't recover.
> 
> We see no active sessions on the database (our application is
> connecting to an Oracle database) and I see no clear error messages
> in either our third party application logs or the Tomcat logs (ex.
> OutofMemory).  When we go to the Windows Task Manager we did not
> see the machine's Memory max'd out but admittedly I didn't look at
> the Java session to see if was reaching its Heap Max.  The only
> thing that we noticed was that TCP connections went down right
> after the restart.  I did open up Jconsole under Java and I did
> force a garbage collection but that didn't seem to help.
> 
> We do have an Oracle Grid Control and we did get an alert in
> regards to Metric: [HTTP Transaction] Perceived Time per Page going
> past thresholds but not sure if that was just an old alert with and
> old range that was set up a long time ago or is a really valid
> clue.Since this is PRD we had to get it back up and running so
> all I did was increase the Tomcat Xmx Heap size and restarted.  I'm
> not really confident that is the solution since as mentioned you
> tend to see a clear out of memory error if it was too small.
> 
> So a few questions:
> 
> 
> 1) Does this sound like a known issue with this earlier version
> of Tomcat?

No.

> 2) Should I turn up any logging on Tomcat and if so which
> ones?

Not yet.

> 3) We didn't do a JSTACK dump while it was happening.  Would
> that have been useful?

Absolutely.

> 4) Do we need to play around with MaxThreads and/or
> MaxConnections.  We do have maxThreads in our server.mxl but in DEV
> when we turned it down to a value = 5  hoping to overwhelm it
> nothing bad happened.

Don't change anything, yet.

> Once again, we are limited to what we could do and collect since it
> was PRD and we needed to restart it.  We restarted the Tomcat
> service and everything is processing fine for right now.  I will
> note that that we did have that bad Windows patch that prevented it
> from stopping and starting cleanly
> (https://stackoverflow.com/questions/51498291/tomcat-lockup-on-shutdow
n)
> but we have taken the break fix patch and the daily restarts seem
> to be fine since then.
> 
> Any comments/suggestions are appreciated!

Your most likely problem is database connection pool mismanagement:
connections aren't properly released and the pool empties. All threads
are left waiting on available database connections which will never be
replenished.

- -chris
-BEGIN PGP SIGNATURE-
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlur4fgACgkQHPApP6U8
pFhq/RAAwZixHqbHxYdX3VCrTfvz0tnOmu7W4sbeFqhExV+M6NVL2LK1RO26eTq5
OJB2o/RheCeajWHxqiJQY4ERMTOyyqZYCsRG9L901heW2UAW122zeX7hhXDB1IMo
qIBVYQalg1j5e2Lw9MqT3ISj6U/GNA6VlirTAHGtuEBBpKXXyb6KtmOgpjHjjXS7
mTYni2iTHO/NaGrS519alFPMBnF4Wq5NzRcLewNMqj9Nbx2uu3Suu95DhJ+WIIep
DOmyy4UGHxGx2QqNUnVWMHApGGjFD4pTWIBwzcbbsL56kZDxRGsF0SsB0VR/jSMY
HdI71RgjpQFSyar1rcCTPCRP97KnUC+oaKhn+i2jBMSRxs94GEOqk4LuKNo39HKP
tXEMkYl0o/CR9QaFDjncy9M2M3/o50ooBvYTOu0SjmyZO+ab9tJpaXbnlf2ChxJI
AWbhBGmwJ6kF5FvVbmzujV7EEF2YCRMBpWo2zjNd6zWvX9OWEOXrOaHuX7iBPCga
YqEMQWyS7XWiBG7AI8+ka5x4s/oxWsbn/6pCdDXhfxl5p5jv7ajm7LbLXGut1N6a
uV5hmLLgZywF68AYe6X3GWv6mygXMBYABZxEA6klWE7HpIzvLxmxu0+vFlYR8qsb
FMAacJ/FYJ9nGRuMqG+V2Edr5U//JvrWqy4raPIvwXGtX+FsqEc=
=Zavb
-END PGP SIGNATURE-

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



Re: Java 11 support in Apache Tomcat 9.0

2018-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Shailendra,

On 9/26/18 10:19, Shailendra Kumar Verma wrote:
> Okay, so we have to provide root of jdk11 install when prompted at
> time of installation.
> 
> Since JDK includes compiler and PCI compliance does not allow it.

Can you please provide a reference to that PCI item?

Thanks,
- -chris

> -Original Message- From: Mark Thomas  
> Sent: Wednesday, September 26, 2018 7:36 PM To:
> users@tomcat.apache.org Subject: Re: Java 11 support in Apache
> Tomcat 9.0
> 
> ***CAUTION: This email originated from outside of the organization.
> Do not open attachments or click links unless you recognize sender
> and know content is safe.*** Forward suspicious email to
> suspici...@convergys.com
> ___
>
>  Tomcat already supports Java 11 and has done for some time.
> 
> You need to point the installer to the root of the jdk-11 install.
> 
> If you install the Orcale JDK, the installer will find it via the
> registry. If you use OpenJDK you'll need to select the root of the
> install (a.k.a. JAVA_HOME) yourself.
> 
> Mark
> 
> 
> 
> On 26/09/2018 08:01, Shailendra Kumar Verma wrote:
>> Johan,
>> 
>> That's what I am saying. All we have now, jvm.dll that comes
>> under jdk-11\bin\server\jvm.dll. No JRE is released from Java 11
>> now.
>> 
>> Thanks, Shailendra
>> 
>> -Original Message- From: Johan Compagner
>>  Sent: Wednesday, September 26, 2018 5:28
>> PM To: Tomcat Users List  Subject: Re:
>> Java 11 support in Apache Tomcat 9.0
>> 
>> ***CAUTION: This email originated from outside of the
>> organization. Do not open attachments or click links unless you
>> recognize sender and know content is safe.*** Forward suspicious
>> email to suspici...@convergys.com 
>> ___
>>
>>
>> 
Just wondering how do you get a JRE?
>> oracle doesnt provide one anymore (and the JDK that you can
>> download can only really be used for development and nothing
>> else)
>> 
>> so are you using the open source JDK?
>> 
>> 
>> On Wed, 26 Sep 2018 at 13:40, Shailendra Kumar Verma <
>> shailendra.kumar.ve...@convergys.com> wrote:
>> 
>>> Hello,
>>> 
>>> When we run Tomcat 9.0.12 installer, it prompts to provide JRE
>>> location. Since Java 11 LTS release yesterday does NOT have any
>>> JRE installer separately, all it has server JVM embedded in it
>>> under . If I give this path where jvm.dll
>>> located under server folder, it does not recognize.
>>> 
>>> Whats' the plan for Java 11 for Apache Tomcat 9.0?
>>> 
>>> Thanks, Shailendra
>>> 
>>> NOTICE: The information contained in this electronic mail 
>>> transmission is intended by Convergys Corporation for the use
>>> of the named individual or entity to which it is directed and
>>> may contain information that is privileged or otherwise
>>> confidential. If you have received this electronic mail
>>> transmission in error, please delete it from your system
>>> without copying or forwarding it, and notify the sender of the
>>> error by reply email or by telephone (collect), so that the
>>> sender's address records can be corrected.
>>> 
>> 
>> 
>> -- Johan Compagner Servoy NOTICE: The information contained in
>> this electronic mail transmission is intended by Convergys
>> Corporation for the use of the named individual or entity to
>> which it is directed and may contain information that is
>> privileged or otherwise confidential. If you have received this
>> electronic mail transmission in error, please delete it from your
>> system without copying or forwarding it, and notify the sender of
>> the error by reply email or by telephone (collect), so that the
>> sender's address records can be corrected.
>> 
>> -
>>
>> 
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
> 
> NOTICE: The information contained in this electronic mail
> transmission is intended by Convergys Corporation for the use of
> the named individual or entity to which it is directed and may
> contain information that is privileged or otherwise confidential.
> If you have received this electronic mail transmission in error,
> please delete it from your system without copying or forwarding it,
> and notify the sender of the error by reply email or by telephone
> (collect), so that the sender's address records can be corrected.
> 
> -
>
> 
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
-BEGIN PGP SIGNATURE-
Comment: Using GnuPG with Thunderbi

Application hanging on Tomcat 7.0.54

2018-09-26 Thread Louis Zipes
Hi all,
Tomcat 7.0.54 running on Windows 2012

We are running a third party application on Tomcat and today we have 
intermittently run in issues where the application stops working.  The big 
changes in our system is that we have added more end users and we are at year 
end so of course everyone is hitting the system hard. Even if we force a log 
out of all users and stop all background jobs then the application doesn't 
recover.

We see no active sessions on the database (our application is connecting to an 
Oracle database) and I see no clear error messages in either our third party 
application logs or the Tomcat logs (ex. OutofMemory).  When we go to the 
Windows Task Manager we did not see the machine's Memory max'd out but 
admittedly I didn't look at the Java session to see if was reaching its Heap 
Max.  The only thing that we noticed was that TCP connections went down right 
after the restart.  I did open up Jconsole under Java and I did force a garbage 
collection but that didn't seem to help.

We do have an Oracle Grid Control and we did get an alert in regards to Metric: 
[HTTP Transaction] Perceived Time per Page going past thresholds but not sure 
if that was just an old alert with and old range that was set up a long time 
ago or is a really valid clue.Since this is PRD we had to get it back up 
and running so all I did was increase the Tomcat Xmx Heap size and restarted.  
I'm not really confident that is the solution since as mentioned you tend to 
see a clear out of memory error if it was too small.

So a few questions:


1) Does this sound like a known issue with this earlier version of Tomcat?

2) Should I turn up any logging on Tomcat and if so which ones?

3) We didn't do a JSTACK dump while it was happening.  Would that have been 
useful?

4) Do we need to play around with MaxThreads and/or MaxConnections.  We do 
have maxThreads in our server.mxl but in DEV when we turned it down to a value 
= 5  hoping to overwhelm it nothing bad happened.

Once again, we are limited to what we could do and collect since it was PRD and 
we needed to restart it.  We restarted the Tomcat service and everything is 
processing fine for right now.  I will note that that we did have that bad 
Windows patch that prevented it from stopping and starting cleanly  
(https://stackoverflow.com/questions/51498291/tomcat-lockup-on-shutdown) but we 
have taken the break fix patch and the daily restarts seem to be fine since 
then.

Any comments/suggestions are appreciated!

Thanks, Louis




LOUIS ZIPES
SOFTWARE DEVELOPER ANALYST IV
O: 781-418-3257
louis.zi...@keurig.com
Keurig Dr Pepper
Visit us at www.KeurigDrPepper.com


---
CONFIDENTIALITY NOTICE: This message is for intended addressee(s) only and may 
contain information that is confidential, proprietary or exempt from 
disclosure. If you are not the intended recipient, please contact the sender 
immediately. Unauthorized use or distribution is prohibited and may be unlawful.


Re: Java 11 support in Apache Tomcat 9.0

2018-09-26 Thread Johan Compagner
but if you talk about a jlink thing isn't it then the idea that it it
includes it all so including tomcat and maybe even the webapp that you want
to run on it?


On Wed, 26 Sep 2018 at 16:19, Shailendra Kumar Verma <
shailendra.kumar.ve...@convergys.com> wrote:

> Okay, so we have to provide root of jdk11 install when prompted at time of
> installation.
>
> Since JDK includes compiler and PCI compliance does not allow it. What if
> we install custom runtime using "jlink" instead of "full JDK11? Will Apache
> Tomcat gets install if we give path of jlink installed custom runtime that
> includes jvm.dll?
>
> Thanks,
> Shailendra
>
>
> -Original Message-
> From: Mark Thomas 
> Sent: Wednesday, September 26, 2018 7:36 PM
> To: users@tomcat.apache.org
> Subject: Re: Java 11 support in Apache Tomcat 9.0
>
> ***CAUTION: This email originated from outside of the organization. Do not
> open attachments or click links unless you recognize sender and know
> content is safe.*** Forward suspicious email to suspici...@convergys.com
> ___
>
> Tomcat already supports Java 11 and has done for some time.
>
> You need to point the installer to the root of the jdk-11 install.
>
> If you install the Orcale JDK, the installer will find it via the
> registry. If you use OpenJDK you'll need to select the root of the install
> (a.k.a. JAVA_HOME) yourself.
>
> Mark
>
>
>
> On 26/09/2018 08:01, Shailendra Kumar Verma wrote:
> > Johan,
> >
> > That's what I am saying. All we have now, jvm.dll that comes under
> jdk-11\bin\server\jvm.dll. No JRE is released from Java 11 now.
> >
> > Thanks,
> > Shailendra
> >
> > -Original Message-
> > From: Johan Compagner 
> > Sent: Wednesday, September 26, 2018 5:28 PM
> > To: Tomcat Users List 
> > Subject: Re: Java 11 support in Apache Tomcat 9.0
> >
> > ***CAUTION: This email originated from outside of the organization. Do
> > not open attachments or click links unless you recognize sender and
> > know content is safe.*** Forward suspicious email to
> > suspici...@convergys.com
> > ___
> >
> > Just wondering how do you get a JRE?
> > oracle doesnt provide one anymore (and the JDK that you can download
> > can only really be used for development and nothing else)
> >
> > so are you using the open source JDK?
> >
> >
> > On Wed, 26 Sep 2018 at 13:40, Shailendra Kumar Verma <
> shailendra.kumar.ve...@convergys.com> wrote:
> >
> >> Hello,
> >>
> >> When we run Tomcat 9.0.12 installer, it prompts to provide JRE location.
> >> Since Java 11 LTS release yesterday does NOT have any JRE installer
> >> separately, all it has server JVM embedded in it under
> .
> >> If I give this path where jvm.dll located under server folder, it
> >> does not recognize.
> >>
> >> Whats' the plan for Java 11 for Apache Tomcat 9.0?
> >>
> >> Thanks,
> >> Shailendra
> >>
> >> NOTICE: The information contained in this electronic mail
> >> transmission is intended by Convergys Corporation for the use of the
> >> named individual or entity to which it is directed and may contain
> >> information that is privileged or otherwise confidential. If you have
> >> received this electronic mail transmission in error, please delete it
> >> from your system without copying or forwarding it, and notify the
> >> sender of the error by reply email or by telephone (collect), so that
> >> the sender's address records can be corrected.
> >>
> >
> >
> > --
> > Johan Compagner
> > Servoy
> > NOTICE: The information contained in this electronic mail transmission
> is intended by Convergys Corporation for the use of the named individual or
> entity to which it is directed and may contain information that is
> privileged or otherwise confidential. If you have received this electronic
> mail transmission in error, please delete it from your system without
> copying or forwarding it, and notify the sender of the error by reply email
> or by telephone (collect), so that the sender's address records can be
> corrected.
> >
> > -
> > 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
>
> NOTICE: The information contained in this electronic mail transmission is
> intended by Convergys Corporation for the use of the named individual or
> entity to which it is directed and may contain information that is
> privileged or otherwise confidential. If you have received this electronic
> mail transmission in error, please delete it from your system without
> copying or forwarding it, and notify the sender of the error by reply email
> or by telephone (collect), so that the sender'

RE: Java 11 support in Apache Tomcat 9.0

2018-09-26 Thread Shailendra Kumar Verma
Okay, so we have to provide root of jdk11 install when prompted at time of 
installation.

Since JDK includes compiler and PCI compliance does not allow it. What if we 
install custom runtime using "jlink" instead of "full JDK11? Will Apache Tomcat 
gets install if we give path of jlink installed custom runtime that includes 
jvm.dll?

Thanks,
Shailendra


-Original Message-
From: Mark Thomas 
Sent: Wednesday, September 26, 2018 7:36 PM
To: users@tomcat.apache.org
Subject: Re: Java 11 support in Apache Tomcat 9.0

***CAUTION: This email originated from outside of the organization. Do not open 
attachments or click links unless you recognize sender and know content is 
safe.*** Forward suspicious email to suspici...@convergys.com 
___

Tomcat already supports Java 11 and has done for some time.

You need to point the installer to the root of the jdk-11 install.

If you install the Orcale JDK, the installer will find it via the registry. If 
you use OpenJDK you'll need to select the root of the install (a.k.a. 
JAVA_HOME) yourself.

Mark



On 26/09/2018 08:01, Shailendra Kumar Verma wrote:
> Johan,
>
> That's what I am saying. All we have now, jvm.dll that comes under 
> jdk-11\bin\server\jvm.dll. No JRE is released from Java 11 now.
>
> Thanks,
> Shailendra
>
> -Original Message-
> From: Johan Compagner 
> Sent: Wednesday, September 26, 2018 5:28 PM
> To: Tomcat Users List 
> Subject: Re: Java 11 support in Apache Tomcat 9.0
>
> ***CAUTION: This email originated from outside of the organization. Do
> not open attachments or click links unless you recognize sender and
> know content is safe.*** Forward suspicious email to
> suspici...@convergys.com
> ___
>
> Just wondering how do you get a JRE?
> oracle doesnt provide one anymore (and the JDK that you can download
> can only really be used for development and nothing else)
>
> so are you using the open source JDK?
>
>
> On Wed, 26 Sep 2018 at 13:40, Shailendra Kumar Verma < 
> shailendra.kumar.ve...@convergys.com> wrote:
>
>> Hello,
>>
>> When we run Tomcat 9.0.12 installer, it prompts to provide JRE location.
>> Since Java 11 LTS release yesterday does NOT have any JRE installer
>> separately, all it has server JVM embedded in it under .
>> If I give this path where jvm.dll located under server folder, it
>> does not recognize.
>>
>> Whats' the plan for Java 11 for Apache Tomcat 9.0?
>>
>> Thanks,
>> Shailendra
>>
>> NOTICE: The information contained in this electronic mail
>> transmission is intended by Convergys Corporation for the use of the
>> named individual or entity to which it is directed and may contain
>> information that is privileged or otherwise confidential. If you have
>> received this electronic mail transmission in error, please delete it
>> from your system without copying or forwarding it, and notify the
>> sender of the error by reply email or by telephone (collect), so that
>> the sender's address records can be corrected.
>>
>
>
> --
> Johan Compagner
> Servoy
> NOTICE: The information contained in this electronic mail transmission is 
> intended by Convergys Corporation for the use of the named individual or 
> entity to which it is directed and may contain information that is privileged 
> or otherwise confidential. If you have received this electronic mail 
> transmission in error, please delete it from your system without copying or 
> forwarding it, and notify the sender of the error by reply email or by 
> telephone (collect), so that the sender's address records can be corrected.
>
> -
> 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

NOTICE: The information contained in this electronic mail transmission is 
intended by Convergys Corporation for the use of the named individual or entity 
to which it is directed and may contain information that is privileged or 
otherwise confidential. If you have received this electronic mail transmission 
in error, please delete it from your system without copying or forwarding it, 
and notify the sender of the error by reply email or by telephone (collect), so 
that the sender's address records can be corrected.


Re: Java 11 support in Apache Tomcat 9.0

2018-09-26 Thread Mark Thomas

Tomcat already supports Java 11 and has done for some time.

You need to point the installer to the root of the jdk-11 install.

If you install the Orcale JDK, the installer will find it via the 
registry. If you use OpenJDK you'll need to select the root of the 
install (a.k.a. JAVA_HOME) yourself.


Mark



On 26/09/2018 08:01, Shailendra Kumar Verma wrote:

Johan,

That's what I am saying. All we have now, jvm.dll that comes under 
jdk-11\bin\server\jvm.dll. No JRE is released from Java 11 now.

Thanks,
Shailendra

-Original Message-
From: Johan Compagner 
Sent: Wednesday, September 26, 2018 5:28 PM
To: Tomcat Users List 
Subject: Re: Java 11 support in Apache Tomcat 9.0

***CAUTION: This email originated from outside of the organization. Do not open 
attachments or click links unless you recognize sender and know content is 
safe.*** Forward suspicious email to suspici...@convergys.com 
___

Just wondering how do you get a JRE?
oracle doesnt provide one anymore (and the JDK that you can download can only 
really be used for development and nothing else)

so are you using the open source JDK?


On Wed, 26 Sep 2018 at 13:40, Shailendra Kumar Verma < 
shailendra.kumar.ve...@convergys.com> wrote:


Hello,

When we run Tomcat 9.0.12 installer, it prompts to provide JRE location.
Since Java 11 LTS release yesterday does NOT have any JRE installer
separately, all it has server JVM embedded in it under .
If I give this path where jvm.dll located under server folder, it does
not recognize.

Whats' the plan for Java 11 for Apache Tomcat 9.0?

Thanks,
Shailendra

NOTICE: The information contained in this electronic mail transmission
is intended by Convergys Corporation for the use of the named
individual or entity to which it is directed and may contain
information that is privileged or otherwise confidential. If you have
received this electronic mail transmission in error, please delete it
from your system without copying or forwarding it, and notify the
sender of the error by reply email or by telephone (collect), so that
the sender's address records can be corrected.




--
Johan Compagner
Servoy
NOTICE: The information contained in this electronic mail transmission is 
intended by Convergys Corporation for the use of the named individual or entity 
to which it is directed and may contain information that is privileged or 
otherwise confidential. If you have received this electronic mail transmission 
in error, please delete it from your system without copying or forwarding it, 
and notify the sender of the error by reply email or by telephone (collect), so 
that the sender's address records can be corrected.

-
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: Java 11 support in Apache Tomcat 9.0

2018-09-26 Thread Shailendra Kumar Verma
Johan,

That's what I am saying. All we have now, jvm.dll that comes under 
jdk-11\bin\server\jvm.dll. No JRE is released from Java 11 now.

Thanks,
Shailendra

-Original Message-
From: Johan Compagner 
Sent: Wednesday, September 26, 2018 5:28 PM
To: Tomcat Users List 
Subject: Re: Java 11 support in Apache Tomcat 9.0

***CAUTION: This email originated from outside of the organization. Do not open 
attachments or click links unless you recognize sender and know content is 
safe.*** Forward suspicious email to suspici...@convergys.com 
___

Just wondering how do you get a JRE?
oracle doesnt provide one anymore (and the JDK that you can download can only 
really be used for development and nothing else)

so are you using the open source JDK?


On Wed, 26 Sep 2018 at 13:40, Shailendra Kumar Verma < 
shailendra.kumar.ve...@convergys.com> wrote:

> Hello,
>
> When we run Tomcat 9.0.12 installer, it prompts to provide JRE location.
> Since Java 11 LTS release yesterday does NOT have any JRE installer
> separately, all it has server JVM embedded in it under .
> If I give this path where jvm.dll located under server folder, it does
> not recognize.
>
> Whats' the plan for Java 11 for Apache Tomcat 9.0?
>
> Thanks,
> Shailendra
>
> NOTICE: The information contained in this electronic mail transmission
> is intended by Convergys Corporation for the use of the named
> individual or entity to which it is directed and may contain
> information that is privileged or otherwise confidential. If you have
> received this electronic mail transmission in error, please delete it
> from your system without copying or forwarding it, and notify the
> sender of the error by reply email or by telephone (collect), so that
> the sender's address records can be corrected.
>


--
Johan Compagner
Servoy
NOTICE: The information contained in this electronic mail transmission is 
intended by Convergys Corporation for the use of the named individual or entity 
to which it is directed and may contain information that is privileged or 
otherwise confidential. If you have received this electronic mail transmission 
in error, please delete it from your system without copying or forwarding it, 
and notify the sender of the error by reply email or by telephone (collect), so 
that the sender's address records can be corrected.

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



Re: Connection refused: connect

2018-09-26 Thread Luis Rodríguez Fernández
Hello Karen,

May I ask you what exactly you try to do:

- Deploy locally
- Deploy remotely
- Debug locally
- Debug remotely
- Other...

Eclipse version? Other plugins or tools (e.g. maven)?

Thanks,

Luis

El sáb., 22 sept. 2018 a las 0:52, Igal Sapir ()
escribió:

> On 9/21/2018 12:45 PM, André Warnier (tomcat) wrote:
> > Hi.
> > Sorry, forget my answer below, I was probably talking nonsense here.
> > The stack trace that you show does not even mention any Tomcat class,
> > so the "connect" mentioned below probably has nothing to do with the
> > HTTP CONNECT method.
> > It looks like something in Eclipse itself, but since I do not know
> > Eclipse (either), I don't have a clue.
> >
> > On 21.09.2018 17:06, André Warnier (tomcat) wrote:
> >> On 21.09.2018 10:54, Karen Goh wrote:
> >>> Hi,
> >>>
> >>> I am repeatedly getting the following exceptions and am stuck here
> >>> like forever.
> >>>
> >>> Hope someone can tell me what's wrong with my tomcat server version:
> >>> 8.5.24 with Eclipse
> >>>
> >>> java.net.ConnectException: Connection refused: connect
> >>> at java.net.DualStackPlainSocketImpl.connect0(Native Method)
> >>> at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
> >>> at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
> >>> at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown
> >>> Source)
> >>> at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
> >>> at java.net.PlainSocketImpl.connect(Unknown Source)
> >>> at java.net.SocksSocketImpl.connect(Unknown Source)
> >>> at java.net.Socket.connect(Unknown Source)
> >>> at java.net.Socket.connect(Unknown Source)
> >>> at java.net.Socket.(Unknown Source)
> >>> at java.net.Socket.(Unknown Source)
> >>> at
> >>>
> org.eclipse.jdi.internal.connect.SocketTransportService$2.run(SocketTransportService.java:148)
>
> >>>
> >>>
> >>> at java.lang.Thread.run(Unknown Source)
>
> It looks to me like Eclipse is trying to connect to Tomcat but fails.
> If the connection is made over the network then a firewall might be
> playing a role here.  If it's all done locally then Tomcat is not
> listening on the host:port to which Eclipse is trying to connect.
>
> Can you connect to that host:port with a browser?  e.g.
> http://localhost:8080/ ?
>
> Igal
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

-- 

"Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better."

- Samuel Beckett


Re: Java 11 support in Apache Tomcat 9.0

2018-09-26 Thread Johan Compagner
Just wondering how do you get a JRE?
oracle doesnt provide one anymore (and the JDK that you can download can
only really be used for development and nothing else)

so are you using the open source JDK?


On Wed, 26 Sep 2018 at 13:40, Shailendra Kumar Verma <
shailendra.kumar.ve...@convergys.com> wrote:

> Hello,
>
> When we run Tomcat 9.0.12 installer, it prompts to provide JRE location.
> Since Java 11 LTS release yesterday does NOT have any JRE installer
> separately, all it has server JVM embedded in it under .
> If I give this path where jvm.dll located under server folder, it does not
> recognize.
>
> Whats' the plan for Java 11 for Apache Tomcat 9.0?
>
> Thanks,
> Shailendra
>
> NOTICE: The information contained in this electronic mail transmission is
> intended by Convergys Corporation for the use of the named individual or
> entity to which it is directed and may contain information that is
> privileged or otherwise confidential. If you have received this electronic
> mail transmission in error, please delete it from your system without
> copying or forwarding it, and notify the sender of the error by reply email
> or by telephone (collect), so that the sender's address records can be
> corrected.
>


-- 
Johan Compagner
Servoy


Java 11 support in Apache Tomcat 9.0

2018-09-26 Thread Shailendra Kumar Verma
Hello,

When we run Tomcat 9.0.12 installer, it prompts to provide JRE location. Since 
Java 11 LTS release yesterday does NOT have any JRE installer separately, all 
it has server JVM embedded in it under . If I give this path 
where jvm.dll located under server folder, it does not recognize.

Whats' the plan for Java 11 for Apache Tomcat 9.0?

Thanks,
Shailendra

NOTICE: The information contained in this electronic mail transmission is 
intended by Convergys Corporation for the use of the named individual or entity 
to which it is directed and may contain information that is privileged or 
otherwise confidential. If you have received this electronic mail transmission 
in error, please delete it from your system without copying or forwarding it, 
and notify the sender of the error by reply email or by telephone (collect), so 
that the sender's address records can be corrected.