Re: Tomcat 8.0.30 silently transforms 302 into 404

2016-01-28 Thread Konstantin Kolinko
2016-01-28 14:07 GMT+03:00 Thomas Scheffler :
> Hi,
>
> it seems that Tomcat 8.0.30 silently transforms a redirect response into a
> not-found response.
>
> https://bz.apache.org/bugzilla/show_bug.cgi?id=56917 introduces redirect to
> relative URLs.
>
> Before 8.0.30 a redirect URL string was simply returned to the client. Now
> it has to be a valid URI (not URL) for the response to succeed.
> If URI.create() fails, no error message is given or exception is thrown.
> Tomcat just sets the response code to 404.
>
> This behavior was introduced in revision 1717256. I appreciate stricter
> rules in this point, but please consider throwing a RuntimeException (best
> option) or at least log the error somewhere.


Bugzilla issue:
https://bz.apache.org/bugzilla/show_bug.cgi?id=58768

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



HTTP communication

2016-01-28 Thread Maxim Neshcheret
I have a problem with my java application related to HTTP communication.

Application description:

1.  Client – server. Server is running in servlet container. We use Tomcat.

Client use java HTTP library to communicate with the server.

2.  When client establish connection to the server it sends GET request 
(keepalive) and server creates AsyncContext for the client with 10 days timeout.

3.  After connection established server periodically sends data to the 
client using AsyncContext and on the client side there is special thread which 
reads and processes the data.

Client reading thread example:

private class GetRunnable implements Runnable {

   private final HttpURLConnection httpConn;
   private final MyConnection myConn;

   public GetRunnable(final MyConnection myConn) throws IOException, 
AppException {
 this.myConn = myConn;
 final String jSession = myConn.getJSession();
 httpConn = openHttpUrlConnection(false, httpPostTimeout, jSession);
 httpConn.connect();
 final int respCode = httpConn.getResponseCode();
 if (respCode != HttpURLConnection.HTTP_OK) {
String info = "Incorrect response from server, 
responseCode:" + respCode + ", message:" + httpConn.getResponseMessage();
log.error(info);
throw new AppException(info);
 } else {
log.trace("GET connected");
 }
   }

   @Override
   public void run() {
 try (final BufferedReader reader = new BufferedReader(new 
InputStreamReader(httpConn.getInputStream(), "UTF-8")) ) {
log.info("doGet STARTED");
final Thread t = Thread.currentThread();
while (!t.isInterrupted()) {
   log.trace("before readline");
   final String line = reader.readLine();
   log.trace("after readline: [" + line + "]");

   //INFO: DATA PROCESSING HERE
}
 } catch (IOException e) {
log.error("Error while doGet");
 } catch (Throwable e) {
log.debug("doGet STOPED...");
log.error("Error while read input msg, do logoff", e);
logoff();
throw e;
 }
 log.debug("doGet STOPED...");
 myCallback.onGetClose(myConn, connInfo);
   }
}

Server side code to push data looks like this:

protected int sendMsgs(final MyConnection myConn, final String info) {

   int res;
   try {
 final AsyncContext lAc = _ac;
 final ServletRequest req = lAc.getRequest();
 if (!req.isAsyncStarted()) {
log.debug("AsyncStarted=false on begin, uid:" + uid + ", 
sid:" + sid);
return -1;
 }

 final ServletResponse res = lAc.getResponse();
 ServletOutputStream  os = null;
 final String text = getData(myConn);

 if (os == null)
os = res.getOutputStream();

 write2stream(os, text, 0x4000);
 os.println();

 if (os != null)
os.flush();
} catch(IOException ex) {
 log.error("Notify failed");
} catch (InterruptedException e) {
 log.error("Notify failed");
 Thread.currentThread().interrupt();
 } catch (Throwable e) {
log.error("Notify failed");
logoff(true);
 }

return res;
}

public static void write2stream(final OutputStream outputStream, final String 
text, int bufferSize) throws IOException {
 final CharsetEncoder encoder = 
getHttpEncodingCharset().newEncoder();

 final int fullLen = text.length();
 final int byteBufferSize = Math.min(bufferSize, fullLen);

 final int en = (int)(byteBufferSize * 
(double)encoder.maxBytesPerChar());
 final byte[] byteArray = new byte[en];

  final ByteBuffer byteBuffer = ByteBuffer.wrap(byteArray);
  final CharBuffer charBuffer = CharBuffer.wrap(text);
 for(int pos=0, len=byteBufferSize;
   pos < fullLen;
   pos=len, len=Math.min(pos+byteBufferSize, fullLen)) {

  try {
final CharBuffer window = charBuffer.subSequence(pos, len);

   CoderResult res = encoder.encode(window, byteBuffer, 
true);

if (!res.isUnderflow())
res.throwException();

res = encoder.flush(byteBuffer);

if (!res.isUnderflow())
res.throwException();

} catch (final CharacterCodingException x) {
throw new Error(x);
   

NullPointerException when using NIO connector

2016-01-28 Thread João Sávio
Hello guys

I'm using Tomcat 7.0.53 and I've changed it to use the NIO connector
recently. So, the following error start appearing on the logs (few per day)

Jan 25, 2016 3:10:16 PM org.apache.tomcat.util.net.NioEndpoint processSocket
SEVERE: Error allocating socket processor
java.lang.NullPointerException


Any guesses? Is it a bug already fixed on newest versions?

Thanks
João


Re: Installing APR based Apache Tomcat Native Library

2016-01-28 Thread Christoph Nenning
> Hello,
> 
> tomcat version: 8.0.22
> java: jdk1.8.0_05
> server: Amazon Linux AMI
> 
> When deploying my web application to my production environment (detailed
> above), I get a message:
> 
> 
> 
> *The APR based Apache Tomcat Native library which allows optimal
> performance in production environments was not found on the
> java.library.path*
> So I wanted to install the Apache Tomcat Native library (does this 
improve
> performance even for a web app that doesn't use SSL?)
> According to the documentation: http://tomcat.apache.org/native-doc/
> I installed the apr-devel and openssl-devel packages with the command:
> 
> yum install apr-devel openssl-devel
> 
> However, I don't understand the next part of the instructions which
> discusses the "make && make install" command.
> From where do I run this command? I searched and I could not find a
> "jni/native" directory.
> From where do I run the "./configure --help" command and the other
> "./configure" commands?
> 
> Thank you.


Those commands mean you compile source code of those libraries. So you 
have to either download source code as zip archives and extract them or 
check it out from version control. You probably need more C development 
tools like a compiler.


Instead of compiling it yourself you can try to install a precompiled 
version from your linux disros repositories:

yum install apr tomcat-native

If you use a recent version of tomcat it might happen that precompiled 
libraries are outdated.

If you just want to avoid that log message you can disable apr connector 
AprLifecycleListener in server.xml.



Regards,
Christoph

This Email was scanned by Sophos Anti Virus


mod_jk Connector for Apache 2.2 and Windows 64-bit

2016-01-28 Thread tomcat

Hi.

On the page http://apache.lauf-forum.at/tomcat/tomcat-connectors/jk/binaries/windows/, the 
following mod_jk binaries are available :


tomcat-connectors-1.2.40-windows-i386-httpd-2.0.x.zip   2014-04-14 21:40  130K  ZIP 
compressed archive
tomcat-connectors-1.2.40-windows-i386-httpd-2.2.x.zip   2014-04-14 21:40  130K  ZIP 
compressed archive
tomcat-connectors-1.2.40-windows-i386-httpd-2.4.x.zip   2014-04-14 21:40  130K  ZIP 
compressed archive
tomcat-connectors-1.2.40-windows-i386-iis.zip   2014-04-14 21:40  176K  ZIP 
compressed archive
tomcat-connectors-1.2.40-windows-i386-iplanet.zip   2014-04-14 21:40  141K  ZIP 
compressed archive
tomcat-connectors-1.2.40-windows-x86_64-httpd-2.4.x.zip 2014-04-14 21:40  158K  ZIP 
compressed archive
tomcat-connectors-1.2.40-windows-x86_64-iis.zip 2014-04-14 21:40  216K  ZIP 
compressed archive


However, I am looking for a "x86_64-httpd-2.2.x" version. (Windows, Apache 2.2 
64-bit).
Any idea where I could find ditto ?

(In a pinch, we could de-install the Apache 64-bit and re-install a 32-bit version, but 
we'd rather not have to do that)


Thanks for any info
André

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



Re: Installing APR based Apache Tomcat Native Library

2016-01-28 Thread Yuval Schwartz
Thank you Christoph,

I installed a compiled version from the distros on my production servers
and I installed the binary version from
http://tomcat.apache.org/download-native.cgi
on my development server.

A slight problem is that when I install from the distros I don't have
control of the version and therefore there is a slight mismatch between my
development and production environments (development version: Apache Tomcat
Native Library 1.1.34 using APR 1.5.1, production version: Apache Tomcat
Native Library 1.1.33 using APR 1.5.1)


Thank you

On Thu, Jan 28, 2016 at 10:27 AM, Christoph Nenning <
christoph.nenn...@lex-com.net> wrote:

> > Hello,
> >
> > tomcat version: 8.0.22
> > java: jdk1.8.0_05
> > server: Amazon Linux AMI
> >
> > When deploying my web application to my production environment (detailed
> > above), I get a message:
> >
> >
> >
> > *The APR based Apache Tomcat Native library which allows optimal
> > performance in production environments was not found on the
> > java.library.path*
> > So I wanted to install the Apache Tomcat Native library (does this
> improve
> > performance even for a web app that doesn't use SSL?)
> > According to the documentation: http://tomcat.apache.org/native-doc/
> > I installed the apr-devel and openssl-devel packages with the command:
> >
> > yum install apr-devel openssl-devel
> >
> > However, I don't understand the next part of the instructions which
> > discusses the "make && make install" command.
> > From where do I run this command? I searched and I could not find a
> > "jni/native" directory.
> > From where do I run the "./configure --help" command and the other
> > "./configure" commands?
> >
> > Thank you.
>
>
> Those commands mean you compile source code of those libraries. So you
> have to either download source code as zip archives and extract them or
> check it out from version control. You probably need more C development
> tools like a compiler.
>
>
> Instead of compiling it yourself you can try to install a precompiled
> version from your linux disros repositories:
>
> yum install apr tomcat-native
>
> If you use a recent version of tomcat it might happen that precompiled
> libraries are outdated.
>
> If you just want to avoid that log message you can disable apr connector
> AprLifecycleListener in server.xml.
>
>
>
> Regards,
> Christoph
>
> This Email was scanned by Sophos Anti Virus
>


Tomcat 8.0.30 silently transforms 302 into 404

2016-01-28 Thread Thomas Scheffler

Hi,

it seems that Tomcat 8.0.30 silently transforms a redirect response into 
a not-found response.


https://bz.apache.org/bugzilla/show_bug.cgi?id=56917 introduces redirect 
to relative URLs.


Before 8.0.30 a redirect URL string was simply returned to the client. 
Now it has to be a valid URI (not URL) for the response to succeed.
If URI.create() fails, no error message is given or exception is thrown. 
Tomcat just sets the response code to 404.


This behavior was introduced in revision 1717256. I appreciate stricter 
rules in this point, but please consider throwing a RuntimeException 
(best option) or at least log the error somewhere.


kind regards,

Thomas

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



FW: Re: tomcat 6.0.41 heap size issue

2016-01-28 Thread Guo, Denny

Hi All,

Looking for help on tomcat heap size issue.

We are see below GC activity before tomcat reports the heap size error. Please 
see below message. However, we assign -Xmx=24G to the heap size, why tomcat 
reports error even not reach 20G heap size usage ?  Can someone please help. 
How the tomcat decides how much memory allocate to young/old generation?

We are running tomcat 6.0.41 on red hat linux as per our vendor.

Thanks,
Denny

2016-01-28T21:20:56.173-0500: [Full GC [PSYoungGen: 761K->761K(2880K)] 
[PSOldGen: 16777215K->16777215K(16777216K)] 16777977K->16777977K(16780096K) 
[PSPermGen: 222628K-222628K(222720K)], 26.7667120 secs] [Times: user=26.77 
sys=0.01, real=26.76 secs]
2016-01-28T21:21:22.942-0500: [Full GC [PSYoungGen: 761K->761K(2880K)] 
[PSOldGen: 16777215K->16777215K(16777216K)] 16777977K->16777977K(16780096K) 
[PSPermGen: 222628K-222628K(222720K)], 26.5016220 secs] [Times: user=26.51 
sys=0.01, real=26.50 secs]
2016-01-28T21:21:49.444-0500: [Full GC [PSYoungGen: 761K->761K(2880K)] 
[PSOldGen: 16777215K->16777215K(16777216K)] 16777977K->16777977K(16780096K) 
[PSPermGen: 222628K-222628K(222912K)], 26.7081550 secs] [Times: user=26.70 
sys=0.01, real=26.70 secs]
2016-01-28T21:22:16.154-0500: [Full GC [PSYoungGen: 761K->761K(2880K)] 
[PSOldGen: 16777215K->16777215K(16777216K)] 16777977K->16777977K(16780096K) 
[PSPermGen: 222628K-222628K(222912K)], 26.7299520 secs] [Times: user=26.73 
sys=0.01, real=26.72 secs]
2016-01-28T21:22:42.884-0500: [Full GC [PSYoungGen: 761K->761K(2880K)] 
[PSOldGen: 16777215K->16777215K(16777216K)] 16777977K->16777977K(16780096K) 
[PSPermGen: 222628K-222628K(222912K)], 26.7488570 secs] [Times: user=26.75 
sys=0.00, real=26.75 secs]
2016-01-28T21:23:09.635-0500: [Full GC [PSYoungGen: 761K->761K(2880K)] 
[PSOldGen: 16777215K->16777215K(16777216K)] 16777977K->16777977K(16780096K) 
[PSPermGen: 222628K-222628K(222912K)], 26.7899470 secs] [Times: user=26.80 
sys=0.00, real=26.79 secs]
2016-01-28T21:23:36.425-0500: [Full GC [PSYoungGen: 761K->761K(2880K)] 
[PSOldGen: 16777215K->16777216K(16777216K)] 16777977K->16777977K(16780096K) 
[PSPermGen: 222628K-222628K(222912K)], 43.0072820 secs] [Times: user=43.01 
sys=0.02, real=43.00 secs]
2016-01-28T21:24:19.435-0500: [Full GC [PSYoungGen: 761K->0K(2880K)] [PSOldGen: 
16777216K->632811K(4342144K)] 16777977K->632811K(4345024K) [PSPermGen: 
222628K->222628K(222912K)], 4.9992850 secs] [Times: user=4.96 sys=0.04, 
real=5.00 secs]
2016-01-28T21:24:19.435-0500: [Full GC [PSYoungGen: 761K->0K(2880K)] [PSOldGen: 
16777216K->632811K(4342144K)] 16777977K->632811K(4345024K) [PSPermGen: 
222628K->222628K(222912K)], 4.9992850 secs] [Times: user=4.96 sys=0.04, 
real=5.00 secs]
Exception in thread "Low Memory Detector" java.lang.OutOfMemoryError: Java heap 
space
2016-01-28T21:24:24.438-0500: [GC [PSYoungGen: 128K->224K(8960K)] 
632939K->633035K(4351104K), 0.0045990 secs] [Times: user=0.02 sys=0.00, 
real=0.01 secs]
2016-01-28T21:24:24.444-0500: [GC [PSYoungGen: 288K->192K(9088K)] 
633099K->633003K(4351232K), 0.0032440 secs] [Times: user=0.02 sys=0.00, 
real=0.00 secs]
2016-01-28T21:24:24.449-0500: [GC [PSYoungGen: 254K->160K(9280K)] 
633098K->633003K(4351424K), 0.0032180 secs] [Times: user=0.02 sys=0.00, 
real=0.01 secs]
Jan 28, 2016 9:24:24 PM 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor 
processChildren
SEVERE: Exception invoking periodic operation:
java.lang.OutOfMemoryError: Java heap space
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:139)
at 
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1389)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1653)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1642)
at java.lang.Thread.run(Thread.java:662)
Jan 28, 2016 9:24:24 PM org.apache.coyote.http11.Http11Processor process
SEVERE: Error processing request


[Facebook]   [Twitter]  
[LinkedIn]  
  [Google+]  

[Livingston Logo]





This e-mail may contain privileged and confidential information. If you are not 
the intended recipient, you are hereby notified that any review, dissemination, 
distribution or duplication of this communication is strictly prohibited. You 
are requested to notify the sender and delete this message and all copies 
thereof. Internet e-mail is not guaranteed to be secure or error-free. This 
sender will not be liable for the risks associated with e-mail. | Ce message 
?lectronique pourrait contenir des informations privil?gi?es et 
confidentielles. Si vous n'en ?tes pas le r?cipiendaire pr?vu, nous vous 
signalons qu'il est strictement interdit d'examiner, de diffuser, de 

Re: FW: Re: tomcat 6.0.41 heap size issue

2016-01-28 Thread kidambi madhu
Ok What's the size of the war file you have deployed to Tomcat?

I suspect the problem is with PermSize (The class loading part of JVM) than
Heap though the error points out Java Heap.

Pls set the PermSize with -XX:PermSize and -XX:MaxPermSize options and test.

Thanks,
Madhu

On Fri, Jan 29, 2016 at 8:53 AM, Guo, Denny  wrote:

> Thanks for quick response. Here is the information.
>
> java version "1.6.0_45"
> Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
> Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)
>
>
> -Original Message-
> From: kidambi madhu [mailto:madhu.kida...@gmail.com]
> Sent: Thursday, January 28, 2016 10:15 PM
> To: Tomcat Users List
> Subject: Re: FW: Re: tomcat 6.0.41 heap size issue
>
> Hi Denny,
>
> Which JDK you are using Oracle JDK/JRockit and which version.
>
> Some memory tuning options depend on JDK product used.
>
> Thanks,
> Madhu
>
> On Fri, Jan 29, 2016 at 8:39 AM, Guo, Denny 
> wrote:
>
> >
> > Hi All,
> >
> > Looking for help on tomcat heap size issue.
> >
> > We are see below GC activity before tomcat reports the heap size error.
> > Please see below message. However, we assign -Xmx=24G to the heap
> > size, why tomcat reports error even not reach 20G heap size usage ?
> > Can someone please help. How the tomcat decides how much memory
> > allocate to young/old generation?
> >
> > We are running tomcat 6.0.41 on red hat linux as per our vendor.
> >
> > Thanks,
> > Denny
> >
> > 2016-01-28T21:20:56.173-0500: [Full GC [PSYoungGen: 761K->761K(2880K)]
> > [PSOldGen: 16777215K->16777215K(16777216K)]
> > 16777977K->16777977K(16780096K)
> > [PSPermGen: 222628K-222628K(222720K)], 26.7667120 secs] [Times:
> > user=26.77 sys=0.01, real=26.76 secs]
> > 2016-01-28T21:21:22.942-0500: [Full GC [PSYoungGen: 761K->761K(2880K)]
> > [PSOldGen: 16777215K->16777215K(16777216K)]
> > 16777977K->16777977K(16780096K)
> > [PSPermGen: 222628K-222628K(222720K)], 26.5016220 secs] [Times:
> > user=26.51 sys=0.01, real=26.50 secs]
> > 2016-01-28T21:21:49.444-0500: [Full GC [PSYoungGen: 761K->761K(2880K)]
> > [PSOldGen: 16777215K->16777215K(16777216K)]
> > 16777977K->16777977K(16780096K)
> > [PSPermGen: 222628K-222628K(222912K)], 26.7081550 secs] [Times:
> > user=26.70 sys=0.01, real=26.70 secs]
> > 2016-01-28T21:22:16.154-0500: [Full GC [PSYoungGen: 761K->761K(2880K)]
> > [PSOldGen: 16777215K->16777215K(16777216K)]
> > 16777977K->16777977K(16780096K)
> > [PSPermGen: 222628K-222628K(222912K)], 26.7299520 secs] [Times:
> > user=26.73 sys=0.01, real=26.72 secs]
> > 2016-01-28T21:22:42.884-0500: [Full GC [PSYoungGen: 761K->761K(2880K)]
> > [PSOldGen: 16777215K->16777215K(16777216K)]
> > 16777977K->16777977K(16780096K)
> > [PSPermGen: 222628K-222628K(222912K)], 26.7488570 secs] [Times:
> > user=26.75 sys=0.00, real=26.75 secs]
> > 2016-01-28T21:23:09.635-0500: [Full GC [PSYoungGen: 761K->761K(2880K)]
> > [PSOldGen: 16777215K->16777215K(16777216K)]
> > 16777977K->16777977K(16780096K)
> > [PSPermGen: 222628K-222628K(222912K)], 26.7899470 secs] [Times:
> > user=26.80 sys=0.00, real=26.79 secs]
> > 2016-01-28T21:23:36.425-0500: [Full GC [PSYoungGen: 761K->761K(2880K)]
> > [PSOldGen: 16777215K->16777216K(16777216K)]
> > 16777977K->16777977K(16780096K)
> > [PSPermGen: 222628K-222628K(222912K)], 43.0072820 secs] [Times:
> > user=43.01 sys=0.02, real=43.00 secs]
> > 2016-01-28T21:24:19.435-0500: [Full GC [PSYoungGen: 761K->0K(2880K)]
> > [PSOldGen: 16777216K->632811K(4342144K)] 16777977K->632811K(4345024K)
> > [PSPermGen: 222628K->222628K(222912K)], 4.9992850 secs] [Times:
> > user=4.96 sys=0.04, real=5.00 secs]
> > 2016-01-28T21:24:19.435-0500: [Full GC [PSYoungGen: 761K->0K(2880K)]
> > [PSOldGen: 16777216K->632811K(4342144K)] 16777977K->632811K(4345024K)
> > [PSPermGen: 222628K->222628K(222912K)], 4.9992850 secs] [Times:
> > user=4.96 sys=0.04, real=5.00 secs] Exception in thread "Low Memory
> > Detector" java.lang.OutOfMemoryError: Java heap space
> > 2016-01-28T21:24:24.438-0500: [GC [PSYoungGen: 128K->224K(8960K)]
> > 632939K->633035K(4351104K), 0.0045990 secs] [Times: user=0.02
> > 632939K->sys=0.00,
> > real=0.01 secs]
> > 2016-01-28T21:24:24.444-0500: [GC [PSYoungGen: 288K->192K(9088K)]
> > 633099K->633003K(4351232K), 0.0032440 secs] [Times: user=0.02
> > 633099K->sys=0.00,
> > real=0.00 secs]
> > 2016-01-28T21:24:24.449-0500: [GC [PSYoungGen: 254K->160K(9280K)]
> > 633098K->633003K(4351424K), 0.0032180 secs] [Times: user=0.02
> > 633098K->sys=0.00,
> > real=0.01 secs]
> > Jan 28, 2016 9:24:24 PM
> > org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor
> > processChildren
> > SEVERE: Exception invoking periodic operation:
> > java.lang.OutOfMemoryError: Java heap space
> > at
> >
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:139)
> > at
> >
> org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1389)
> > at
> >
> 

Re: mod_jk Connector for Apache 2.2 and Windows 64-bit

2016-01-28 Thread tomcat

On 28.01.2016 14:44, Konstantin Kolinko wrote:

2016-01-28 15:00 GMT+03:00 André Warnier (tomcat) :

Hi.

On the page
http://apache.lauf-forum.at/tomcat/tomcat-connectors/jk/binaries/windows/,
the following mod_jk binaries are available :

tomcat-connectors-1.2.40-windows-i386-httpd-2.0.x.zip   2014-04-14 21:40
130K  ZIP compressed archive
tomcat-connectors-1.2.40-windows-i386-httpd-2.2.x.zip   2014-04-14 21:40
130K  ZIP compressed archive
tomcat-connectors-1.2.40-windows-i386-httpd-2.4.x.zip   2014-04-14 21:40
130K  ZIP compressed archive
tomcat-connectors-1.2.40-windows-i386-iis.zip   2014-04-14 21:40
176K  ZIP compressed archive
tomcat-connectors-1.2.40-windows-i386-iplanet.zip   2014-04-14 21:40
141K  ZIP compressed archive
tomcat-connectors-1.2.40-windows-x86_64-httpd-2.4.x.zip 2014-04-14 21:40
158K  ZIP compressed archive
tomcat-connectors-1.2.40-windows-x86_64-iis.zip 2014-04-14 21:40
216K  ZIP compressed archive

However, I am looking for a "x86_64-httpd-2.2.x" version. (Windows, Apache
2.2 64-bit).
Any idea where I could find ditto ?

(In a pinch, we could de-install the Apache 64-bit and re-install a 32-bit
version, but we'd rather not have to do that)



You may try here:
http://www.apachelounge.com/download/win64/

The Tomcat committers no longer provide binaries for mod_jk (the dev
environment was lost).
E.g. 1.2.41 was a sources-only release.

It is known that apachelounge.com builds mod_jk for their builds of httpd.




I think that I hit the send button too quickly before..

I wanted to say thanks,
I did indeed find what I was looking for on apachelounge.

André



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



Re: FW: Re: tomcat 6.0.41 heap size issue

2016-01-28 Thread kidambi madhu
Hi Denny,

Which JDK you are using Oracle JDK/JRockit and which version.

Some memory tuning options depend on JDK product used.

Thanks,
Madhu

On Fri, Jan 29, 2016 at 8:39 AM, Guo, Denny  wrote:

>
> Hi All,
>
> Looking for help on tomcat heap size issue.
>
> We are see below GC activity before tomcat reports the heap size error.
> Please see below message. However, we assign -Xmx=24G to the heap size, why
> tomcat reports error even not reach 20G heap size usage ?  Can someone
> please help. How the tomcat decides how much memory allocate to young/old
> generation?
>
> We are running tomcat 6.0.41 on red hat linux as per our vendor.
>
> Thanks,
> Denny
>
> 2016-01-28T21:20:56.173-0500: [Full GC [PSYoungGen: 761K->761K(2880K)]
> [PSOldGen: 16777215K->16777215K(16777216K)] 16777977K->16777977K(16780096K)
> [PSPermGen: 222628K-222628K(222720K)], 26.7667120 secs] [Times: user=26.77
> sys=0.01, real=26.76 secs]
> 2016-01-28T21:21:22.942-0500: [Full GC [PSYoungGen: 761K->761K(2880K)]
> [PSOldGen: 16777215K->16777215K(16777216K)] 16777977K->16777977K(16780096K)
> [PSPermGen: 222628K-222628K(222720K)], 26.5016220 secs] [Times: user=26.51
> sys=0.01, real=26.50 secs]
> 2016-01-28T21:21:49.444-0500: [Full GC [PSYoungGen: 761K->761K(2880K)]
> [PSOldGen: 16777215K->16777215K(16777216K)] 16777977K->16777977K(16780096K)
> [PSPermGen: 222628K-222628K(222912K)], 26.7081550 secs] [Times: user=26.70
> sys=0.01, real=26.70 secs]
> 2016-01-28T21:22:16.154-0500: [Full GC [PSYoungGen: 761K->761K(2880K)]
> [PSOldGen: 16777215K->16777215K(16777216K)] 16777977K->16777977K(16780096K)
> [PSPermGen: 222628K-222628K(222912K)], 26.7299520 secs] [Times: user=26.73
> sys=0.01, real=26.72 secs]
> 2016-01-28T21:22:42.884-0500: [Full GC [PSYoungGen: 761K->761K(2880K)]
> [PSOldGen: 16777215K->16777215K(16777216K)] 16777977K->16777977K(16780096K)
> [PSPermGen: 222628K-222628K(222912K)], 26.7488570 secs] [Times: user=26.75
> sys=0.00, real=26.75 secs]
> 2016-01-28T21:23:09.635-0500: [Full GC [PSYoungGen: 761K->761K(2880K)]
> [PSOldGen: 16777215K->16777215K(16777216K)] 16777977K->16777977K(16780096K)
> [PSPermGen: 222628K-222628K(222912K)], 26.7899470 secs] [Times: user=26.80
> sys=0.00, real=26.79 secs]
> 2016-01-28T21:23:36.425-0500: [Full GC [PSYoungGen: 761K->761K(2880K)]
> [PSOldGen: 16777215K->16777216K(16777216K)] 16777977K->16777977K(16780096K)
> [PSPermGen: 222628K-222628K(222912K)], 43.0072820 secs] [Times: user=43.01
> sys=0.02, real=43.00 secs]
> 2016-01-28T21:24:19.435-0500: [Full GC [PSYoungGen: 761K->0K(2880K)]
> [PSOldGen: 16777216K->632811K(4342144K)] 16777977K->632811K(4345024K)
> [PSPermGen: 222628K->222628K(222912K)], 4.9992850 secs] [Times: user=4.96
> sys=0.04, real=5.00 secs]
> 2016-01-28T21:24:19.435-0500: [Full GC [PSYoungGen: 761K->0K(2880K)]
> [PSOldGen: 16777216K->632811K(4342144K)] 16777977K->632811K(4345024K)
> [PSPermGen: 222628K->222628K(222912K)], 4.9992850 secs] [Times: user=4.96
> sys=0.04, real=5.00 secs]
> Exception in thread "Low Memory Detector" java.lang.OutOfMemoryError: Java
> heap space
> 2016-01-28T21:24:24.438-0500: [GC [PSYoungGen: 128K->224K(8960K)]
> 632939K->633035K(4351104K), 0.0045990 secs] [Times: user=0.02 sys=0.00,
> real=0.01 secs]
> 2016-01-28T21:24:24.444-0500: [GC [PSYoungGen: 288K->192K(9088K)]
> 633099K->633003K(4351232K), 0.0032440 secs] [Times: user=0.02 sys=0.00,
> real=0.00 secs]
> 2016-01-28T21:24:24.449-0500: [GC [PSYoungGen: 254K->160K(9280K)]
> 633098K->633003K(4351424K), 0.0032180 secs] [Times: user=0.02 sys=0.00,
> real=0.01 secs]
> Jan 28, 2016 9:24:24 PM
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor
> processChildren
> SEVERE: Exception invoking periodic operation:
> java.lang.OutOfMemoryError: Java heap space
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:139)
> at
> org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1389)
> at
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1653)
> at
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1642)
> at java.lang.Thread.run(Thread.java:662)
> Jan 28, 2016 9:24:24 PM org.apache.coyote.http11.Http11Processor process
> SEVERE: Error processing request
>
>
> [Facebook] 
> [Twitter]  [LinkedIn]  <
> http://www.linkedin.com/company/livingston-international>  [Google+]  <
> https://plus.google.com/+Livingstonintl/posts>
> [Livingston Logo]
>
>
>
>
>
> This e-mail may contain privileged and confidential information. If you
> are not the intended recipient, you are hereby notified that any review,
> dissemination, distribution or duplication of this communication is
> strictly prohibited. You are requested to notify the sender and delete this
> message and all copies thereof. 

RE: FW: Re: tomcat 6.0.41 heap size issue

2016-01-28 Thread Guo, Denny
Thanks for quick response. Here is the information.

java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)


-Original Message-
From: kidambi madhu [mailto:madhu.kida...@gmail.com]
Sent: Thursday, January 28, 2016 10:15 PM
To: Tomcat Users List
Subject: Re: FW: Re: tomcat 6.0.41 heap size issue

Hi Denny,

Which JDK you are using Oracle JDK/JRockit and which version.

Some memory tuning options depend on JDK product used.

Thanks,
Madhu

On Fri, Jan 29, 2016 at 8:39 AM, Guo, Denny  wrote:

>
> Hi All,
>
> Looking for help on tomcat heap size issue.
>
> We are see below GC activity before tomcat reports the heap size error.
> Please see below message. However, we assign -Xmx=24G to the heap
> size, why tomcat reports error even not reach 20G heap size usage ?
> Can someone please help. How the tomcat decides how much memory
> allocate to young/old generation?
>
> We are running tomcat 6.0.41 on red hat linux as per our vendor.
>
> Thanks,
> Denny
>
> 2016-01-28T21:20:56.173-0500: [Full GC [PSYoungGen: 761K->761K(2880K)]
> [PSOldGen: 16777215K->16777215K(16777216K)]
> 16777977K->16777977K(16780096K)
> [PSPermGen: 222628K-222628K(222720K)], 26.7667120 secs] [Times:
> user=26.77 sys=0.01, real=26.76 secs]
> 2016-01-28T21:21:22.942-0500: [Full GC [PSYoungGen: 761K->761K(2880K)]
> [PSOldGen: 16777215K->16777215K(16777216K)]
> 16777977K->16777977K(16780096K)
> [PSPermGen: 222628K-222628K(222720K)], 26.5016220 secs] [Times:
> user=26.51 sys=0.01, real=26.50 secs]
> 2016-01-28T21:21:49.444-0500: [Full GC [PSYoungGen: 761K->761K(2880K)]
> [PSOldGen: 16777215K->16777215K(16777216K)]
> 16777977K->16777977K(16780096K)
> [PSPermGen: 222628K-222628K(222912K)], 26.7081550 secs] [Times:
> user=26.70 sys=0.01, real=26.70 secs]
> 2016-01-28T21:22:16.154-0500: [Full GC [PSYoungGen: 761K->761K(2880K)]
> [PSOldGen: 16777215K->16777215K(16777216K)]
> 16777977K->16777977K(16780096K)
> [PSPermGen: 222628K-222628K(222912K)], 26.7299520 secs] [Times:
> user=26.73 sys=0.01, real=26.72 secs]
> 2016-01-28T21:22:42.884-0500: [Full GC [PSYoungGen: 761K->761K(2880K)]
> [PSOldGen: 16777215K->16777215K(16777216K)]
> 16777977K->16777977K(16780096K)
> [PSPermGen: 222628K-222628K(222912K)], 26.7488570 secs] [Times:
> user=26.75 sys=0.00, real=26.75 secs]
> 2016-01-28T21:23:09.635-0500: [Full GC [PSYoungGen: 761K->761K(2880K)]
> [PSOldGen: 16777215K->16777215K(16777216K)]
> 16777977K->16777977K(16780096K)
> [PSPermGen: 222628K-222628K(222912K)], 26.7899470 secs] [Times:
> user=26.80 sys=0.00, real=26.79 secs]
> 2016-01-28T21:23:36.425-0500: [Full GC [PSYoungGen: 761K->761K(2880K)]
> [PSOldGen: 16777215K->16777216K(16777216K)]
> 16777977K->16777977K(16780096K)
> [PSPermGen: 222628K-222628K(222912K)], 43.0072820 secs] [Times:
> user=43.01 sys=0.02, real=43.00 secs]
> 2016-01-28T21:24:19.435-0500: [Full GC [PSYoungGen: 761K->0K(2880K)]
> [PSOldGen: 16777216K->632811K(4342144K)] 16777977K->632811K(4345024K)
> [PSPermGen: 222628K->222628K(222912K)], 4.9992850 secs] [Times:
> user=4.96 sys=0.04, real=5.00 secs]
> 2016-01-28T21:24:19.435-0500: [Full GC [PSYoungGen: 761K->0K(2880K)]
> [PSOldGen: 16777216K->632811K(4342144K)] 16777977K->632811K(4345024K)
> [PSPermGen: 222628K->222628K(222912K)], 4.9992850 secs] [Times:
> user=4.96 sys=0.04, real=5.00 secs] Exception in thread "Low Memory
> Detector" java.lang.OutOfMemoryError: Java heap space
> 2016-01-28T21:24:24.438-0500: [GC [PSYoungGen: 128K->224K(8960K)]
> 632939K->633035K(4351104K), 0.0045990 secs] [Times: user=0.02
> 632939K->sys=0.00,
> real=0.01 secs]
> 2016-01-28T21:24:24.444-0500: [GC [PSYoungGen: 288K->192K(9088K)]
> 633099K->633003K(4351232K), 0.0032440 secs] [Times: user=0.02
> 633099K->sys=0.00,
> real=0.00 secs]
> 2016-01-28T21:24:24.449-0500: [GC [PSYoungGen: 254K->160K(9280K)]
> 633098K->633003K(4351424K), 0.0032180 secs] [Times: user=0.02
> 633098K->sys=0.00,
> real=0.01 secs]
> Jan 28, 2016 9:24:24 PM
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor
> processChildren
> SEVERE: Exception invoking periodic operation:
> java.lang.OutOfMemoryError: Java heap space
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:139)
> at
> org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1389)
> at
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1653)
> at
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1642)
> at java.lang.Thread.run(Thread.java:662)
> Jan 28, 2016 9:24:24 PM org.apache.coyote.http11.Http11Processor
> process
> SEVERE: Error processing request
>
>
> [Facebook] 
> [Twitter]  [LinkedIn]  <
> http://www.linkedin.com/company/livingston-international> 

Re: mod_jk Connector for Apache 2.2 and Windows 64-bit

2016-01-28 Thread Konstantin Kolinko
2016-01-28 15:00 GMT+03:00 André Warnier (tomcat) :
> Hi.
>
> On the page
> http://apache.lauf-forum.at/tomcat/tomcat-connectors/jk/binaries/windows/,
> the following mod_jk binaries are available :
>
> tomcat-connectors-1.2.40-windows-i386-httpd-2.0.x.zip   2014-04-14 21:40
> 130K  ZIP compressed archive
> tomcat-connectors-1.2.40-windows-i386-httpd-2.2.x.zip   2014-04-14 21:40
> 130K  ZIP compressed archive
> tomcat-connectors-1.2.40-windows-i386-httpd-2.4.x.zip   2014-04-14 21:40
> 130K  ZIP compressed archive
> tomcat-connectors-1.2.40-windows-i386-iis.zip   2014-04-14 21:40
> 176K  ZIP compressed archive
> tomcat-connectors-1.2.40-windows-i386-iplanet.zip   2014-04-14 21:40
> 141K  ZIP compressed archive
> tomcat-connectors-1.2.40-windows-x86_64-httpd-2.4.x.zip 2014-04-14 21:40
> 158K  ZIP compressed archive
> tomcat-connectors-1.2.40-windows-x86_64-iis.zip 2014-04-14 21:40
> 216K  ZIP compressed archive
>
> However, I am looking for a "x86_64-httpd-2.2.x" version. (Windows, Apache
> 2.2 64-bit).
> Any idea where I could find ditto ?
>
> (In a pinch, we could de-install the Apache 64-bit and re-install a 32-bit
> version, but we'd rather not have to do that)


You may try here:
http://www.apachelounge.com/download/win64/

The Tomcat committers no longer provide binaries for mod_jk (the dev
environment was lost).
E.g. 1.2.41 was a sources-only release.

It is known that apachelounge.com builds mod_jk for their builds of httpd.


Best regards,
Konstantin Kolinko

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



Re: mod_jk Connector for Apache 2.2 and Windows 64-bit

2016-01-28 Thread tomcat

2016-01-28 15:00 GMT+03:00 André Warnier (tomcat) :

Hi.

On the page
http://apache.lauf-forum.at/tomcat/tomcat-connectors/jk/binaries/windows/,
the following mod_jk binaries are available :

tomcat-connectors-1.2.40-windows-i386-httpd-2.0.x.zip   2014-04-14 21:40
130K  ZIP compressed archive
tomcat-connectors-1.2.40-windows-i386-httpd-2.2.x.zip   2014-04-14 21:40
130K  ZIP compressed archive
tomcat-connectors-1.2.40-windows-i386-httpd-2.4.x.zip   2014-04-14 21:40
130K  ZIP compressed archive
tomcat-connectors-1.2.40-windows-i386-iis.zip   2014-04-14 21:40
176K  ZIP compressed archive
tomcat-connectors-1.2.40-windows-i386-iplanet.zip   2014-04-14 21:40
141K  ZIP compressed archive
tomcat-connectors-1.2.40-windows-x86_64-httpd-2.4.x.zip 2014-04-14 21:40
158K  ZIP compressed archive
tomcat-connectors-1.2.40-windows-x86_64-iis.zip 2014-04-14 21:40
216K  ZIP compressed archive

However, I am looking for a "x86_64-httpd-2.2.x" version. (Windows, Apache
2.2 64-bit).
Any idea where I could find ditto ?

(In a pinch, we could de-install the Apache 64-bit and re-install a 32-bit
version, but we'd rather not have to do that)



You may try here:
http://www.apachelounge.com/download/win64/

The Tomcat committers no longer provide binaries for mod_jk (the dev
environment was lost).
E.g. 1.2.41 was a sources-only release.

It is known that apachelounge.com builds mod_jk for their builds of httpd.


Best regards,
Konstantin Kolinko

-
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: mod_jk Connector for Apache 2.2 and Windows 64-bit

2016-01-28 Thread tomcat

On 28.01.2016 15:55, Konstantin Kolinko wrote:

2016-01-28 16:44 GMT+03:00 Konstantin Kolinko :

2016-01-28 15:00 GMT+03:00 André Warnier (tomcat) :

Hi.

On the page
http://apache.lauf-forum.at/tomcat/tomcat-connectors/jk/binaries/windows/,
the following mod_jk binaries are available :

[...]


You may try here:
http://www.apachelounge.com/download/win64/

The Tomcat committers no longer provide binaries for mod_jk (the dev
environment was lost).
E.g. 1.2.41 was a sources-only release.

It is known that apachelounge.com builds mod_jk for their builds of httpd..



For a reference, Christopher summed up the situation here,
(2015-08, "[ANN] Apache Tomcat Connectors 1.2.41 released" thread)
http://tomcat.markmail.org/message/lyxmf5zof5csf6bn



Ok, understood.
Thanks for the reference.



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



Re: mod_jk Connector for Apache 2.2 and Windows 64-bit

2016-01-28 Thread Konstantin Kolinko
2016-01-28 16:44 GMT+03:00 Konstantin Kolinko :
> 2016-01-28 15:00 GMT+03:00 André Warnier (tomcat) :
>> Hi.
>>
>> On the page
>> http://apache.lauf-forum.at/tomcat/tomcat-connectors/jk/binaries/windows/,
>> the following mod_jk binaries are available :
>>
>> [...]
>
> You may try here:
> http://www.apachelounge.com/download/win64/
>
> The Tomcat committers no longer provide binaries for mod_jk (the dev
> environment was lost).
> E.g. 1.2.41 was a sources-only release.
>
> It is known that apachelounge.com builds mod_jk for their builds of httpd.
>

For a reference, Christopher summed up the situation here,
(2015-08, "[ANN] Apache Tomcat Connectors 1.2.41 released" thread)
http://tomcat.markmail.org/message/lyxmf5zof5csf6bn


Best regards,
Konstantin Kolinko

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