You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Randeep <ra...@gmail.com> on 2014/03/17 05:52:06 UTC

tomcat-native libraries

Hi,

I have a httpd-2.2.3-82.el5.centos.x86_64+mod_jk+apache-tomcat-6.0.37 stack

Whenever I restart the server it shows the following warning.
INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path:
/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib

Then I tried to install tomcat-native-1.1.27-src

But I'm getting the following error.

#./configure --with-apr=/usr/bin/apr-1-config
--with-java-home=/usr/java/jdk1.7.0_25
then
#make
make[1]: Entering directory
`/usr/share/apache-tomcat-6.0.37/bin/tomcat-native-1.1.27-src/jni/native'
/bin/sh /usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -pthread
 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -DHAVE_CONFIG_H -DLINUX=2
-D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL
-I/usr/share/apache-tomcat-6.0.37/bin/tomcat-native-1.1.27-src/jni/native/include
-I/usr/java/jdk1.7.0_25/include -I/usr/java/jdk1.7.0_25/include/linux
 -I/usr/include/apr-1   -o src/poll.lo -c src/poll.c && touch src/poll.lo
src/poll.c: In function 'Java_org_apache_tomcat_jni_Poll_create':
src/poll.c:112: error: 'APR_POLLSET_NOCOPY' undeclared (first use in this
function)
src/poll.c:112: error: (Each undeclared identifier is reported only once
src/poll.c:112: error: for each function it appears in.)
src/poll.c: In function 'Java_org_apache_tomcat_jni_Poll_poll':
src/poll.c:306: warning: implicit declaration of function 'APR_RING_FOREACH'
src/poll.c:306: error: expected expression before 'tcn_pfde_t'
src/poll.c:307: error: expected ';' before '{' token
src/poll.c: In function 'Java_org_apache_tomcat_jni_Poll_maintain':
src/poll.c:399: warning: implicit declaration of function
'APR_RING_FOREACH_SAFE'
src/poll.c:399: error: expected expression before 'tcn_pfde_t'
src/poll.c:400: error: expected ';' before '{' token
src/poll.c:392: warning: unused variable 'now'
src/poll.c:391: warning: unused variable 'num'
src/poll.c:391: warning: unused variable 'i'
src/poll.c: In function 'Java_org_apache_tomcat_jni_Poll_pollset':
src/poll.c:471: error: expected expression before 'tcn_pfde_t'
src/poll.c:472: error: expected ';' before '{' token
make[1]: *** [src/poll.lo] Error 1
make[1]: Leaving directory
`/usr/share/apache-tomcat-6.0.37/bin/tomcat-native-1.1.27-src/jni/native'
make: *** [all-recursive] Error 1

This is my version of ap
Package apr-1.2.7-11.el5_6.5.x86_64 already installed and latest version
Package apr-devel-1.2.7-11.el5_6.5.x86_64 already installed and latest
version
Package apr-util-1.2.7-11.el5_5.2.x86_64 already installed and latest
version

Cant I install this version in centos 5?
-- 
Randeep
Mob: +919447831699[kerala]
Mob: +919880050349[B'lore]
I blog here:
http://www.randeeppr.me/
Follow me Here:
http://twitter.com/Randeeppr
Poke me here!
http://www.facebook.com/Randeeppr
A little Linux Help
http://www.linuxhelp.in/
Work profile:
http://in.linkedin.com/in/randeeppr

Re: tomcat-native libraries

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Randeep,

On 3/19/14, 6:00 AM, Randeep wrote:
> These are the connectors I can see in my server.xml
> 
> <Connector port="8080" protocol="HTTP/1.1"
> connectionTimeout="20000" redirectPort="8443" /> <Connector
> port="8009" protocol="AJP/1.3" redirectPort="8443" />

Since you don't have tcnative available, you will get the (Tomcat 7)
default of the BIO connector. I'd stick with that for the AJP
connector. You might want to switch to the NIO connector for your HTTP
protocol. Check the Connector page in the "Configuration" section of
the Users Guide for how to choose which connector to use.

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

iQIcBAEBCAAGBQJTKZ72AAoJEBzwKT+lPKRYQTsP/2/jcSwmqFhGwszVoTjWQ0ae
M//a5UaXZvE/Fbg52i6cBgvdKD/pYPtDpoTedF6FXgiccPrGk3M6EdeywrTOs+Ts
lta3z/ahMnwnxVlASrsnjNi28dwMXIwch9hH97fL7WyCXluRC1CnTYUqk4ZdowSt
2X/I792cIiLrz47bdqGSnJsVl7TVcbeQ/bkCnZWc6iGfDGcHpnfzi/min8Ufy33V
0+7XCJBJtI3iEeX2wYk2BijuCroqdtHTmkZ+HZFxuT+x5iCcGeRCgunrs2GaX0BG
0bVNVG3OM1PiByLFtpQBktyvKw83o3/3diZWfEPj+m/tf814eUpfUrP/FZonUpnq
V54heH+Yo5G3h53QmlEv0cr+eQJKs16tdI4tvSN+RRBUIEWH07RcRxiUE12Fl0JL
MqjMJOOlsCpR8B0j/7HwlVKPI4vW/mjIWHmV9WcfY8DOFKeSWd83RVj7Nz7R0/7P
Ehsnr6WpqWLxmdC1ueDerBywh3fhhecvspgL+dOuU5aiWbVaTYYdRpZNFIRhvjjL
f+3qUfoVqL6vClk1dMj8zby7xdvVvFS4cubyR9jFuc0XG0rOEpY2chsDDsPZ1fiP
8q+rx2pYi57Lv15VesrPZ4DZvrOe3T9hpHPXiM6YkG2AMB/a8nYzoUjtj9jB0XjM
TMplZp4MMLmgp60FH9Zs
=/Ej8
-----END PGP SIGNATURE-----

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


Re: tomcat-native libraries

Posted by Randeep <ra...@gmail.com>.
Chris,Martin,


On Wed, Mar 19, 2014 at 12:59 AM, Christopher Schultz <
chris@christopherschultz.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Randeep,
>
> On 3/18/14, 10:27 AM, Randeep wrote:
> >> I'm not sure about what kind of connector I'm using. This is my
> >> configuration.
> >
> >> httpd-2.2.3-65.el5.centos + tomcat-connectors-1.2.28-src +
> >> tomcat-connectors-1.2.28-src
> >
> >> [root@server tomcat-connectors-1.2.28-src]# cat
> >> /etc/httpd/conf.d/mod_jk.conf JkWorkersFile
> >> /etc/httpd/conf.d/workers.properties JkLogFile
> >> /var/log/httpd/mod_jk.log JkLogLevel info JkLogStampFormat "[%a
> >> %b %d %H:%M:%S %Y] " JkOptions +ForwardKeySize +ForwardURICompat
> >> -ForwardDirectories JkRequestLogFormat "%w %V %T" JkMount /*
> >> worker1 JkShmFile  /etc/httpd/logs/jk-runtime-status
>
> Assuming that this is the only configuration you have in httpd.conf,
> then you are using mod_jk (and not mod_proxy_ajp or mod_proxy_http).
>
> >> [root@server tomcat-connectors-1.2.28-src]# cat
> >> /etc/httpd/conf.d/workers.properties
> >> workers.tomcat_home=/usr/share/apache-tomcat-6.0.37/
> >> workers.java_home=/usr/java/default
>
> You don't need "java_home".
>
> >> ps=/
>
> You don't need "ps".
>
> I have removed both. Its working without them.


> >> worker.list=worker1 worker.default.port=8009
> >> worker.default.host=localhost worker.default.type=ajp13
> >
> >> Is there anyway to check which type is this NIO or BIO?
>
> The <Connector> from Tomcat's server.xml will tell you that, unless
> you have left the default in which case it depends upon whether you
> have APR available or not. Since the whole thread started with you
> saying you didn't have APR, it's likely that it's /not/ available and
> therefore you likely have the default BIO connector.
>
> - -chris
>

These are the connectors I can see in my server.xml

<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000"
redirectPort="8443" />
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />

- Randeep


> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQIcBAEBCAAGBQJTKJ6dAAoJEBzwKT+lPKRYpi8QAKrcux1ROhOTnlB4zhnobLFK
> BjYrggkOddrzQoncePN/4vcZeKssBlzNNNu2JD6OzDmax3vhms/y6Fhn9x3dYwFm
> MKDySqHdNiPqe5b33n/vIPg5gqiZlHDh+AzOwW3mG83rI0S8NFt2zIq3EY5pX915
> uu31kISNWR7/W4nFGqngg8lGT6VH0qLXOpjLKCe+AwMIhtgIarfoZ1UZkZbbgBXq
> wE0gKC7xO+nCs+nC0Rovadne9nQRLIBjxtqfl8w2+YfuSmanpZ/ar+utAh51xi7X
> XCeJP6gKXh+gYZLcauHEyKKVwdHPquJn/p0k8HMNoEkNTYauykwIBcU2GPxlqcPI
> 4rE80edoCkIth+RuccnD9xG5Db8QiYDT9Q5Fea9klbs3VwK36FXeLAHiKo3UV4Xg
> yZDO2yqEDTdQwNXI1IldMUh9yA7jatvYUg83vL1C11W45dCm7ZHmKeb3GBIF6ze6
> mmmd0aBQ6xle9ghEU57ComPKxcJke+XST7UybIu24Ug29ig9UvgjoortMTmKJaQY
> 8kwwPLkfRJKsf3XZa4pMwpY3bhb2o5u6ugz7qcQz318hZUnaWi5kRsS3BJzl4H1u
> IXCaD1cVm8sPNWFWJexnJvwY+bLgjCI/zvyz21BwGYqkc4Z8OgQdzGkwPAzPBj9G
> DFQAkuNV4BK29jwuRWnl
> =onNP
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


-- 
Randeep
Mob: +919447831699[kerala]
Mob: +919880050349[B'lore]
I blog here:
http://www.randeeppr.me/
Follow me Here:
http://twitter.com/Randeeppr
Poke me here!
http://www.facebook.com/Randeeppr
A little Linux Help
http://www.linuxhelp.in/
Work profile:
http://in.linkedin.com/in/randeeppr

Re: tomcat-native libraries

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Randeep,

On 3/18/14, 10:27 AM, Randeep wrote:
>> I'm not sure about what kind of connector I'm using. This is my 
>> configuration.
> 
>> httpd-2.2.3-65.el5.centos + tomcat-connectors-1.2.28-src + 
>> tomcat-connectors-1.2.28-src
> 
>> [root@server tomcat-connectors-1.2.28-src]# cat 
>> /etc/httpd/conf.d/mod_jk.conf JkWorkersFile
>> /etc/httpd/conf.d/workers.properties JkLogFile
>> /var/log/httpd/mod_jk.log JkLogLevel info JkLogStampFormat "[%a
>> %b %d %H:%M:%S %Y] " JkOptions +ForwardKeySize +ForwardURICompat
>> -ForwardDirectories JkRequestLogFormat "%w %V %T" JkMount /*
>> worker1 JkShmFile  /etc/httpd/logs/jk-runtime-status

Assuming that this is the only configuration you have in httpd.conf,
then you are using mod_jk (and not mod_proxy_ajp or mod_proxy_http).

>> [root@server tomcat-connectors-1.2.28-src]# cat 
>> /etc/httpd/conf.d/workers.properties 
>> workers.tomcat_home=/usr/share/apache-tomcat-6.0.37/ 
>> workers.java_home=/usr/java/default

You don't need "java_home".

>> ps=/

You don't need "ps".

>> worker.list=worker1 worker.default.port=8009 
>> worker.default.host=localhost worker.default.type=ajp13
> 
>> Is there anyway to check which type is this NIO or BIO?

The <Connector> from Tomcat's server.xml will tell you that, unless
you have left the default in which case it depends upon whether you
have APR available or not. Since the whole thread started with you
saying you didn't have APR, it's likely that it's /not/ available and
therefore you likely have the default BIO connector.

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

iQIcBAEBCAAGBQJTKJ6dAAoJEBzwKT+lPKRYpi8QAKrcux1ROhOTnlB4zhnobLFK
BjYrggkOddrzQoncePN/4vcZeKssBlzNNNu2JD6OzDmax3vhms/y6Fhn9x3dYwFm
MKDySqHdNiPqe5b33n/vIPg5gqiZlHDh+AzOwW3mG83rI0S8NFt2zIq3EY5pX915
uu31kISNWR7/W4nFGqngg8lGT6VH0qLXOpjLKCe+AwMIhtgIarfoZ1UZkZbbgBXq
wE0gKC7xO+nCs+nC0Rovadne9nQRLIBjxtqfl8w2+YfuSmanpZ/ar+utAh51xi7X
XCeJP6gKXh+gYZLcauHEyKKVwdHPquJn/p0k8HMNoEkNTYauykwIBcU2GPxlqcPI
4rE80edoCkIth+RuccnD9xG5Db8QiYDT9Q5Fea9klbs3VwK36FXeLAHiKo3UV4Xg
yZDO2yqEDTdQwNXI1IldMUh9yA7jatvYUg83vL1C11W45dCm7ZHmKeb3GBIF6ze6
mmmd0aBQ6xle9ghEU57ComPKxcJke+XST7UybIu24Ug29ig9UvgjoortMTmKJaQY
8kwwPLkfRJKsf3XZa4pMwpY3bhb2o5u6ugz7qcQz318hZUnaWi5kRsS3BJzl4H1u
IXCaD1cVm8sPNWFWJexnJvwY+bLgjCI/zvyz21BwGYqkc4Z8OgQdzGkwPAzPBj9G
DFQAkuNV4BK29jwuRWnl
=onNP
-----END PGP SIGNATURE-----

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


RE: tomcat-native libraries

Posted by Martin Gainty <mg...@hotmail.com>.

  


> Date: Tue, 18 Mar 2014 19:57:57 +0530
> Subject: Re: tomcat-native libraries
> From: randeep123@gmail.com
> To: users@tomcat.apache.org
> 
> On Tue, Mar 18, 2014 at 7:29 PM, Christopher Schultz <
> chris@christopherschultz.net> wrote:
> 
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA256
> >
> > Randeep,
> >
> > On 3/18/14, 9:46 AM, Randeep wrote:
> > > On Tue, Mar 18, 2014 at 7:13 PM, Christopher Schultz <
> > > chris@christopherschultz.net> wrote:
> > >
> > > John,
> > >
> > > On 3/17/14, 9:52 AM, John Smith wrote:
> > >>>>>
> > >>>>>
> > >>>>> Installing the native library will make a difference.
> > >>>>> Whether the difference is large enough to notice depends
> > >>>>> very much on your application. If you want to improve your
> > >>>>> application's performance I suspect your time would be
> > >>>>> better spent with a profiler to see where the bottlenecks
> > >>>>> are in your application.
> > >>>>>
> > >>>>> Mark
> > >>>>>
> > >>>>
> > >>>> +1 I had the native APR installed and ended up removing it in
> > >>>> favor of keeping things simple. The NIO connector often
> > >>>> recommended by Chris S. and others works very well.
> > >
> > > It's also a big "safer" in that obscure problems rarely bring-down
> > > the JVM, whereas a bug in tcnative/apr/openssl can kill the entire
> > > JVM without warning.
> > >
> > > Using APR really only makes sense if you are using Tomcat directly
> > > as a web server that uses SSL, since there is a measurable
> > > difference between OpenSSL's performance and JSSE's performance.
> > >
> > > -chris
> > >
> > >
> > >> Thank you Chris, In that case, I'm not going to use it. I was
> > >> using httpd as front end to server ssl certificates. Now load
> > >> balancer is handling it.
> >
> > Stick with the NIO connector. If you are using AJP to connect httpd to
> > Tomcat, you will probably be better off with the BIO connector,
> > actually. It's simpler and basically bug-free given its maturity.
> > Since there is a 1:1 map between Tomcat and httpd connections, there's
> > no really good reason to switch to another connector IMO.
> >
> > - -chris
> >
> 
> Chris,
> I'm not sure about what kind of connector I'm using. This ismy
> configuration.
> 
> httpd-2.2.3-65.el5.centos + tomcat-connectors-1.2.28-src +
> tomcat-connectors-1.2.28-src
> 
> [root@server tomcat-connectors-1.2.28-src]# cat
> /etc/httpd/conf.d/mod_jk.conf
> JkWorkersFile /etc/httpd/conf.d/workers.properties
> JkLogFile /var/log/httpd/mod_jk.log
> JkLogLevel info
> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
> JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
> JkRequestLogFormat "%w %V %T"
> JkMount /* worker1
> JkShmFile /etc/httpd/logs/jk-runtime-status
> 
> [root@server tomcat-connectors-1.2.28-src]# cat
> /etc/httpd/conf.d/workers.properties
> workers.tomcat_home=/usr/share/apache-tomcat-6.0.37/
> workers.java_home=/usr/java/default
> ps=/
> worker.list=worker1
> worker.default.port=8009
> worker.default.host=localhost
> worker.default.type=ajp13
> 
> Is there anyway to check which type is this NIO or BIO?
MG>check the Connector in server.xml

> 
> -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1
> > Comment: GPGTools - http://gpgtools.org
> > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
> >
> > iQIcBAEBCAAGBQJTKFFMAAoJEBzwKT+lPKRYS74P/1UkDakuqDz6LyLUaBeTzcXl
> > R/2eliStJMAE146C6QpE2YBV4w2dyh/xEnndRmbE3R3NE9cD3yUom+VO7x1OOgL9
> > ODM8Ry5AWXBXqhjx2k4hjRM43Hza6Z+GJYb9RutdLj71GCU4fEFrTX23sCAkUKbx
> > nzCGMG4robj7l6TDSdK6uZpmisV7LGBWsUIjkJnTX5AvxFhU5QsFOISE/osFAy6I
> > ukw840t57BCJ0mlIV/EBORa+0BCO+lz7ZBk+kkwHG5mSXFapTqNcySKfYGEzkVmD
> > 8OHBJehmkqHfBuqgiavIwpLZ3wZnLcrJpsMzdxGUG1wuuFVtr1aRZ+h/L+/diUnE
> > B37m9fOuwd3RfY7uhJXATiYo8oW5nB/EOIYuKDsfgMi7eY/NBg2r8Rw7MHYLJUuN
> > lXtHJTyyBLQcgw5twnTbdA5MPbdgjZ2A2uw6sKCf5/vNyZBkGky+6Fush9cMRIL/
> > zdmNyJCCP9jzBOltFl0NNW/bpI1UKpMk8bScJZvAC3JNvMt1FCu3e4rQmqJXlzwG
> > yBIQeqoIHpogLbF5CxGcOUJGV80O0o5vq+N2qt7TArqOHEifGhroVAQPEOtYmI/K
> > x7u4Xv+VPg19YmRS6PJCYkYw082vFbmanXjt7BgmUWNs3WD1ooe66bmWPzKX3btA
> > HcuHDQFgyaGQu0z55MYP
> > =Vqt8
> > -----END PGP SIGNATURE-----
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
> 
> 
> -- 
> Randeep
> Mob: +919447831699[kerala]
> Mob: +919880050349[B'lore]
> I blog here:
> http://www.randeeppr.me/
> Follow me Here:
> http://twitter.com/Randeeppr
> Poke me here!
> http://www.facebook.com/Randeeppr
> A little Linux Help
> http://www.linuxhelp.in/
> Work profile:
> http://in.linkedin.com/in/randeeppr
 		 	   		  

Re: tomcat-native libraries

Posted by Randeep <ra...@gmail.com>.
On Tue, Mar 18, 2014 at 7:29 PM, Christopher Schultz <
chris@christopherschultz.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Randeep,
>
> On 3/18/14, 9:46 AM, Randeep wrote:
> > On Tue, Mar 18, 2014 at 7:13 PM, Christopher Schultz <
> > chris@christopherschultz.net> wrote:
> >
> > John,
> >
> > On 3/17/14, 9:52 AM, John Smith wrote:
> >>>>>
> >>>>>
> >>>>> Installing the native library will make a difference.
> >>>>> Whether the difference is large enough to notice depends
> >>>>> very much on your application. If you want to improve your
> >>>>> application's performance I suspect your time would be
> >>>>> better spent with a profiler to see where the bottlenecks
> >>>>> are in your application.
> >>>>>
> >>>>> Mark
> >>>>>
> >>>>
> >>>> +1 I had the native APR installed and ended up removing it in
> >>>> favor of keeping things simple. The NIO connector often
> >>>> recommended by Chris S. and others works very well.
> >
> > It's also a big "safer" in that obscure problems rarely bring-down
> > the JVM, whereas a bug in tcnative/apr/openssl can kill the entire
> > JVM without warning.
> >
> > Using APR really only makes sense if you are using Tomcat directly
> > as a web server that uses SSL, since there is a measurable
> > difference between OpenSSL's performance and JSSE's performance.
> >
> > -chris
> >
> >
> >> Thank you Chris, In that case, I'm not going to use it. I was
> >> using httpd as front end  to server ssl certificates. Now load
> >> balancer is handling it.
>
> Stick with the NIO connector. If you are using AJP to connect httpd to
> Tomcat, you will probably be better off with the BIO connector,
> actually. It's simpler and basically bug-free given its maturity.
> Since there is a 1:1 map between Tomcat and httpd connections, there's
> no really good reason to switch to another connector IMO.
>
> - -chris
>

Chris,
I'm not sure about what kind of connector I'm using. This ismy
configuration.

httpd-2.2.3-65.el5.centos + tomcat-connectors-1.2.28-src +
tomcat-connectors-1.2.28-src

[root@server tomcat-connectors-1.2.28-src]# cat
/etc/httpd/conf.d/mod_jk.conf
JkWorkersFile /etc/httpd/conf.d/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"
JkMount /* worker1
JkShmFile  /etc/httpd/logs/jk-runtime-status

[root@server tomcat-connectors-1.2.28-src]# cat
/etc/httpd/conf.d/workers.properties
workers.tomcat_home=/usr/share/apache-tomcat-6.0.37/
workers.java_home=/usr/java/default
ps=/
worker.list=worker1
worker.default.port=8009
worker.default.host=localhost
worker.default.type=ajp13

Is there anyway to check which type is this NIO or BIO?

-----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQIcBAEBCAAGBQJTKFFMAAoJEBzwKT+lPKRYS74P/1UkDakuqDz6LyLUaBeTzcXl
> R/2eliStJMAE146C6QpE2YBV4w2dyh/xEnndRmbE3R3NE9cD3yUom+VO7x1OOgL9
> ODM8Ry5AWXBXqhjx2k4hjRM43Hza6Z+GJYb9RutdLj71GCU4fEFrTX23sCAkUKbx
> nzCGMG4robj7l6TDSdK6uZpmisV7LGBWsUIjkJnTX5AvxFhU5QsFOISE/osFAy6I
> ukw840t57BCJ0mlIV/EBORa+0BCO+lz7ZBk+kkwHG5mSXFapTqNcySKfYGEzkVmD
> 8OHBJehmkqHfBuqgiavIwpLZ3wZnLcrJpsMzdxGUG1wuuFVtr1aRZ+h/L+/diUnE
> B37m9fOuwd3RfY7uhJXATiYo8oW5nB/EOIYuKDsfgMi7eY/NBg2r8Rw7MHYLJUuN
> lXtHJTyyBLQcgw5twnTbdA5MPbdgjZ2A2uw6sKCf5/vNyZBkGky+6Fush9cMRIL/
> zdmNyJCCP9jzBOltFl0NNW/bpI1UKpMk8bScJZvAC3JNvMt1FCu3e4rQmqJXlzwG
> yBIQeqoIHpogLbF5CxGcOUJGV80O0o5vq+N2qt7TArqOHEifGhroVAQPEOtYmI/K
> x7u4Xv+VPg19YmRS6PJCYkYw082vFbmanXjt7BgmUWNs3WD1ooe66bmWPzKX3btA
> HcuHDQFgyaGQu0z55MYP
> =Vqt8
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


-- 
Randeep
Mob: +919447831699[kerala]
Mob: +919880050349[B'lore]
I blog here:
http://www.randeeppr.me/
Follow me Here:
http://twitter.com/Randeeppr
Poke me here!
http://www.facebook.com/Randeeppr
A little Linux Help
http://www.linuxhelp.in/
Work profile:
http://in.linkedin.com/in/randeeppr

Re: tomcat-native libraries

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Randeep,

On 3/18/14, 9:46 AM, Randeep wrote:
> On Tue, Mar 18, 2014 at 7:13 PM, Christopher Schultz < 
> chris@christopherschultz.net> wrote:
> 
> John,
> 
> On 3/17/14, 9:52 AM, John Smith wrote:
>>>>> 
>>>>> 
>>>>> Installing the native library will make a difference.
>>>>> Whether the difference is large enough to notice depends
>>>>> very much on your application. If you want to improve your
>>>>> application's performance I suspect your time would be
>>>>> better spent with a profiler to see where the bottlenecks
>>>>> are in your application.
>>>>> 
>>>>> Mark
>>>>> 
>>>> 
>>>> +1 I had the native APR installed and ended up removing it in
>>>> favor of keeping things simple. The NIO connector often
>>>> recommended by Chris S. and others works very well.
> 
> It's also a big "safer" in that obscure problems rarely bring-down
> the JVM, whereas a bug in tcnative/apr/openssl can kill the entire
> JVM without warning.
> 
> Using APR really only makes sense if you are using Tomcat directly
> as a web server that uses SSL, since there is a measurable
> difference between OpenSSL's performance and JSSE's performance.
> 
> -chris
> 
> 
>> Thank you Chris, In that case, I'm not going to use it. I was
>> using httpd as front end  to server ssl certificates. Now load
>> balancer is handling it.

Stick with the NIO connector. If you are using AJP to connect httpd to
Tomcat, you will probably be better off with the BIO connector,
actually. It's simpler and basically bug-free given its maturity.
Since there is a 1:1 map between Tomcat and httpd connections, there's
no really good reason to switch to another connector IMO.

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

iQIcBAEBCAAGBQJTKFFMAAoJEBzwKT+lPKRYS74P/1UkDakuqDz6LyLUaBeTzcXl
R/2eliStJMAE146C6QpE2YBV4w2dyh/xEnndRmbE3R3NE9cD3yUom+VO7x1OOgL9
ODM8Ry5AWXBXqhjx2k4hjRM43Hza6Z+GJYb9RutdLj71GCU4fEFrTX23sCAkUKbx
nzCGMG4robj7l6TDSdK6uZpmisV7LGBWsUIjkJnTX5AvxFhU5QsFOISE/osFAy6I
ukw840t57BCJ0mlIV/EBORa+0BCO+lz7ZBk+kkwHG5mSXFapTqNcySKfYGEzkVmD
8OHBJehmkqHfBuqgiavIwpLZ3wZnLcrJpsMzdxGUG1wuuFVtr1aRZ+h/L+/diUnE
B37m9fOuwd3RfY7uhJXATiYo8oW5nB/EOIYuKDsfgMi7eY/NBg2r8Rw7MHYLJUuN
lXtHJTyyBLQcgw5twnTbdA5MPbdgjZ2A2uw6sKCf5/vNyZBkGky+6Fush9cMRIL/
zdmNyJCCP9jzBOltFl0NNW/bpI1UKpMk8bScJZvAC3JNvMt1FCu3e4rQmqJXlzwG
yBIQeqoIHpogLbF5CxGcOUJGV80O0o5vq+N2qt7TArqOHEifGhroVAQPEOtYmI/K
x7u4Xv+VPg19YmRS6PJCYkYw082vFbmanXjt7BgmUWNs3WD1ooe66bmWPzKX3btA
HcuHDQFgyaGQu0z55MYP
=Vqt8
-----END PGP SIGNATURE-----

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


Re: tomcat-native libraries

Posted by Randeep <ra...@gmail.com>.
On Tue, Mar 18, 2014 at 7:13 PM, Christopher Schultz <
chris@christopherschultz.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> John,
>
> On 3/17/14, 9:52 AM, John Smith wrote:
> >>
> >>
> >> Installing the native library will make a difference. Whether
> >> the difference is large enough to notice depends very much on
> >> your application. If you want to improve your application's
> >> performance I suspect your time would be better spent with a
> >> profiler to see where the bottlenecks are in your application.
> >>
> >> Mark
> >>
> >
> > +1 I had the native APR installed and ended up removing it in favor
> > of keeping things simple. The NIO connector often recommended by
> > Chris S. and others works very well.
>
> It's also a big "safer" in that obscure problems rarely bring-down the
> JVM, whereas a bug in tcnative/apr/openssl can kill the entire JVM
> without warning.
>
> Using APR really only makes sense if you are using Tomcat directly as
> a web server that uses SSL, since there is a measurable difference
> between OpenSSL's performance and JSSE's performance.
>
> - -chris
>

Thank you Chris,
In that case, I'm not going to use it. I was using httpd as front end  to
server ssl certificates. Now load balancer is handling it.

-Randeep

-----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQIcBAEBCAAGBQJTKE1nAAoJEBzwKT+lPKRYtq8P/2VBOytTaDZ7Tg7jDWXkBYl3
> nky5nQB1YqMiFnMaSEFuy7z84CEEPKOclQd1qU7GSbvdTL2pKUXhkYo5UCgUxElb
> prsiaoMqx4YjCF3XY3231TKCE1v9MgkcGsdFbDu9m4eeyUP+U+R9obh02CsfeHqP
> zs+/5eglbfYLeTfxKoJviE+uWOqAbkPD/j9hHJNG2TNme+ognYMshFiAjyEVI0AN
> kz+8eoTMabL3mM6echZwwZhfGtMx7xM7oVL+kgdFvwE93iw/JopUyQa0O0znFJ9S
> mITnnmjnuFH9J7Ktm96STcJ0VCFy+qmM3+/p0wZOFlh5EWczomcvTMtQIjh2nVzK
> CWeLxQlifZoSqIO/zADg79PCJHPnpT8p3woV7Q4Dwb7PmTToKvpZLhday84U7mQG
> ue6f3jWaqb93zN8K3qJJll8MT/WqTR84lEeKaVfW3hJevWB0Ym70kGLAcRGgC9fk
> f3necQBAhg9B5a0OAPc/+W2b3RrPmQ9NnTTBBzDWxRBmXeBvpkZMLzTZPnZ42VvW
> z2HMucc+izlv/43Iz1afeXJI0CyJ+ATtVjfwJdC4/jHYk8p7kjcD61QVjPqh0MtH
> Aoa8IvsDBl6K+dOyJ3qOzDpfCMc60491TNGLTojtvNAgNwXOKijLYUTwnqzt5I2F
> 8MDbrI2Mj7LYnlPGsIHA
> =mCrR
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


-- 
Randeep
Mob: +919447831699[kerala]
Mob: +919880050349[B'lore]
I blog here:
http://www.randeeppr.me/
Follow me Here:
http://twitter.com/Randeeppr
Poke me here!
http://www.facebook.com/Randeeppr
A little Linux Help
http://www.linuxhelp.in/
Work profile:
http://in.linkedin.com/in/randeeppr

Re: tomcat-native libraries

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

John,

On 3/17/14, 9:52 AM, John Smith wrote:
>> 
>> 
>> Installing the native library will make a difference. Whether
>> the difference is large enough to notice depends very much on
>> your application. If you want to improve your application's
>> performance I suspect your time would be better spent with a
>> profiler to see where the bottlenecks are in your application.
>> 
>> Mark
>> 
> 
> +1 I had the native APR installed and ended up removing it in favor
> of keeping things simple. The NIO connector often recommended by
> Chris S. and others works very well.

It's also a big "safer" in that obscure problems rarely bring-down the
JVM, whereas a bug in tcnative/apr/openssl can kill the entire JVM
without warning.

Using APR really only makes sense if you are using Tomcat directly as
a web server that uses SSL, since there is a measurable difference
between OpenSSL's performance and JSSE's performance.

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

iQIcBAEBCAAGBQJTKE1nAAoJEBzwKT+lPKRYtq8P/2VBOytTaDZ7Tg7jDWXkBYl3
nky5nQB1YqMiFnMaSEFuy7z84CEEPKOclQd1qU7GSbvdTL2pKUXhkYo5UCgUxElb
prsiaoMqx4YjCF3XY3231TKCE1v9MgkcGsdFbDu9m4eeyUP+U+R9obh02CsfeHqP
zs+/5eglbfYLeTfxKoJviE+uWOqAbkPD/j9hHJNG2TNme+ognYMshFiAjyEVI0AN
kz+8eoTMabL3mM6echZwwZhfGtMx7xM7oVL+kgdFvwE93iw/JopUyQa0O0znFJ9S
mITnnmjnuFH9J7Ktm96STcJ0VCFy+qmM3+/p0wZOFlh5EWczomcvTMtQIjh2nVzK
CWeLxQlifZoSqIO/zADg79PCJHPnpT8p3woV7Q4Dwb7PmTToKvpZLhday84U7mQG
ue6f3jWaqb93zN8K3qJJll8MT/WqTR84lEeKaVfW3hJevWB0Ym70kGLAcRGgC9fk
f3necQBAhg9B5a0OAPc/+W2b3RrPmQ9NnTTBBzDWxRBmXeBvpkZMLzTZPnZ42VvW
z2HMucc+izlv/43Iz1afeXJI0CyJ+ATtVjfwJdC4/jHYk8p7kjcD61QVjPqh0MtH
Aoa8IvsDBl6K+dOyJ3qOzDpfCMc60491TNGLTojtvNAgNwXOKijLYUTwnqzt5I2F
8MDbrI2Mj7LYnlPGsIHA
=mCrR
-----END PGP SIGNATURE-----

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


Re: tomcat-native libraries

Posted by John Smith <to...@gmail.com>.
>
>
> Installing the native library will make a difference. Whether the
> difference is large enough to notice depends very much on your
> application. If you want to improve your application's performance I
> suspect your time would be better spent with a profiler to see where the
> bottlenecks are in your application.
>
> Mark
>

+1
I had the native APR installed and ended up removing it in favor of keeping
things simple. The NIO connector often recommended by Chris S. and others
works very well.

Re: tomcat-native libraries

Posted by Mark Thomas <ma...@apache.org>.
On 17/03/2014 09:09, Randeep wrote:
> On Mon, Mar 17, 2014 at 1:51 PM, Mark Thomas <ma...@apache.org> wrote:
> 
>> On 17/03/2014 08:10, Randeep wrote:
>>> On Mon, Mar 17, 2014 at 12:35 PM, Mark Thomas <ma...@apache.org> wrote:
>>>
>>>> On 17/03/2014 04:52, Randeep wrote:
>>>>> Hi,
>>>>>
>>>>> I have a httpd-2.2.3-82.el5.centos.x86_64+mod_jk+apache-tomcat-6.0.37
>>>> stack
>>>>>
>>>>> Whenever I restart the server it shows the following warning.
>>>>> INFO: The APR based Apache Tomcat Native library which allows optimal
>>>>> performance in production environments was not found on the
>>>>> java.library.path:
>>>>> /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
>>>>
>>>> That isn't a warning. Warnings start "WARN: ...".
>>>>
>>>> It is an informational message. It informs you that that the native
>>>> library is not installed and that the native library typically has
>>>> better performance.
>>>>
>>>
>>> Yes. Its an informational message. Sorry about it.
>>>
>>>>
>>>>> Then I tried to install tomcat-native-1.1.27-src
>>>>
>>>> Why? To get rid of the log message or to solve a performance problem?
>>>>
>>>> Mark
>>>>
>>>
>>> Actually I'm getting this error on production server.
>>
>> Again, this is not an error. They start "ERROR: ..." or "FATAL: ..."
>>
>>
>>> I didn't know about
>>> tomcat native libraries. If it increase performance then I felt that It
>>> should be implemented.
>>
>> Why should you install it?
>> What performance problem are you trying to solve?
>> Why do you think that installing the native libraries will solve it?
>>
>> While the native library does - generally - perform better, it is not a
>> magic "make it faster" library.
>>
>>
>> Dear Mark,
> 
> I was mentioning compilation error. I'm not getting any performance issues.

Then why are you spending time trying to solve a problem you don't have?

> But reading that information in logs I thought by installing the native
> libraries may improve the performance.

Installing the native library will make a difference. Whether the
difference is large enough to notice depends very much on your
application. If you want to improve your application's performance I
suspect your time would be better spent with a profiler to see where the
bottlenecks are in your application.

Mark


> So I tried to install it and while
> compiling I got error. My apologies if I asked something wrong.
> 
> Mark
>>
>>
>>> That is why I tired to install it.
>>>
>>>
>>>>
>>>
>>>>>
>>>>> But I'm getting the following error.
>>>>>
>>>>> #./configure --with-apr=/usr/bin/apr-1-config
>>>>> --with-java-home=/usr/java/jdk1.7.0_25
>>>>> then
>>>>> #make
>>>>> make[1]: Entering directory
>>>>>
>> `/usr/share/apache-tomcat-6.0.37/bin/tomcat-native-1.1.27-src/jni/native'
>>>>> /bin/sh /usr/lib64/apr-1/build/libtool --silent --mode=compile gcc
>>>> -pthread
>>>>>  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
>>>> -fstack-protector
>>>>> --param=ssp-buffer-size=4 -m64 -mtune=generic -DHAVE_CONFIG_H -DLINUX=2
>>>>> -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL
>>>>>
>>>>
>> -I/usr/share/apache-tomcat-6.0.37/bin/tomcat-native-1.1.27-src/jni/native/include
>>>>> -I/usr/java/jdk1.7.0_25/include -I/usr/java/jdk1.7.0_25/include/linux
>>>>>  -I/usr/include/apr-1   -o src/poll.lo -c src/poll.c && touch
>> src/poll.lo
>>>>> src/poll.c: In function 'Java_org_apache_tomcat_jni_Poll_create':
>>>>> src/poll.c:112: error: 'APR_POLLSET_NOCOPY' undeclared (first use in
>> this
>>>>> function)
>>>>> src/poll.c:112: error: (Each undeclared identifier is reported only
>> once
>>>>> src/poll.c:112: error: for each function it appears in.)
>>>>> src/poll.c: In function 'Java_org_apache_tomcat_jni_Poll_poll':
>>>>> src/poll.c:306: warning: implicit declaration of function
>>>> 'APR_RING_FOREACH'
>>>>> src/poll.c:306: error: expected expression before 'tcn_pfde_t'
>>>>> src/poll.c:307: error: expected ';' before '{' token
>>>>> src/poll.c: In function 'Java_org_apache_tomcat_jni_Poll_maintain':
>>>>> src/poll.c:399: warning: implicit declaration of function
>>>>> 'APR_RING_FOREACH_SAFE'
>>>>> src/poll.c:399: error: expected expression before 'tcn_pfde_t'
>>>>> src/poll.c:400: error: expected ';' before '{' token
>>>>> src/poll.c:392: warning: unused variable 'now'
>>>>> src/poll.c:391: warning: unused variable 'num'
>>>>> src/poll.c:391: warning: unused variable 'i'
>>>>> src/poll.c: In function 'Java_org_apache_tomcat_jni_Poll_pollset':
>>>>> src/poll.c:471: error: expected expression before 'tcn_pfde_t'
>>>>> src/poll.c:472: error: expected ';' before '{' token
>>>>> make[1]: *** [src/poll.lo] Error 1
>>>>> make[1]: Leaving directory
>>>>>
>> `/usr/share/apache-tomcat-6.0.37/bin/tomcat-native-1.1.27-src/jni/native'
>>>>> make: *** [all-recursive] Error 1
>>>>>
>>>>> This is my version of ap
>>>>> Package apr-1.2.7-11.el5_6.5.x86_64 already installed and latest
>> version
>>>>> Package apr-devel-1.2.7-11.el5_6.5.x86_64 already installed and latest
>>>>> version
>>>>> Package apr-util-1.2.7-11.el5_5.2.x86_64 already installed and latest
>>>>> version
>>>>>
>>>>> Cant I install this version in centos 5?
>>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>
>>>>
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
> 
> 


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


Re: tomcat-native libraries

Posted by Randeep <ra...@gmail.com>.
On Mon, Mar 17, 2014 at 1:51 PM, Mark Thomas <ma...@apache.org> wrote:

> On 17/03/2014 08:10, Randeep wrote:
> > On Mon, Mar 17, 2014 at 12:35 PM, Mark Thomas <ma...@apache.org> wrote:
> >
> >> On 17/03/2014 04:52, Randeep wrote:
> >>> Hi,
> >>>
> >>> I have a httpd-2.2.3-82.el5.centos.x86_64+mod_jk+apache-tomcat-6.0.37
> >> stack
> >>>
> >>> Whenever I restart the server it shows the following warning.
> >>> INFO: The APR based Apache Tomcat Native library which allows optimal
> >>> performance in production environments was not found on the
> >>> java.library.path:
> >>> /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
> >>
> >> That isn't a warning. Warnings start "WARN: ...".
> >>
> >> It is an informational message. It informs you that that the native
> >> library is not installed and that the native library typically has
> >> better performance.
> >>
> >
> > Yes. Its an informational message. Sorry about it.
> >
> >>
> >>> Then I tried to install tomcat-native-1.1.27-src
> >>
> >> Why? To get rid of the log message or to solve a performance problem?
> >>
> >> Mark
> >>
> >
> > Actually I'm getting this error on production server.
>
> Again, this is not an error. They start "ERROR: ..." or "FATAL: ..."
>
>
> > I didn't know about
> > tomcat native libraries. If it increase performance then I felt that It
> > should be implemented.
>
> Why should you install it?
> What performance problem are you trying to solve?
> Why do you think that installing the native libraries will solve it?
>
> While the native library does - generally - perform better, it is not a
> magic "make it faster" library.
>
>
> Dear Mark,

I was mentioning compilation error. I'm not getting any performance issues.
But reading that information in logs I thought by installing the native
libraries may improve the performance. So I tried to install it and while
compiling I got error. My apologies if I asked something wrong.

Mark
>
>
> > That is why I tired to install it.
> >
> >
> >>
> >
> >>>
> >>> But I'm getting the following error.
> >>>
> >>> #./configure --with-apr=/usr/bin/apr-1-config
> >>> --with-java-home=/usr/java/jdk1.7.0_25
> >>> then
> >>> #make
> >>> make[1]: Entering directory
> >>>
> `/usr/share/apache-tomcat-6.0.37/bin/tomcat-native-1.1.27-src/jni/native'
> >>> /bin/sh /usr/lib64/apr-1/build/libtool --silent --mode=compile gcc
> >> -pthread
> >>>  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> >> -fstack-protector
> >>> --param=ssp-buffer-size=4 -m64 -mtune=generic -DHAVE_CONFIG_H -DLINUX=2
> >>> -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL
> >>>
> >>
> -I/usr/share/apache-tomcat-6.0.37/bin/tomcat-native-1.1.27-src/jni/native/include
> >>> -I/usr/java/jdk1.7.0_25/include -I/usr/java/jdk1.7.0_25/include/linux
> >>>  -I/usr/include/apr-1   -o src/poll.lo -c src/poll.c && touch
> src/poll.lo
> >>> src/poll.c: In function 'Java_org_apache_tomcat_jni_Poll_create':
> >>> src/poll.c:112: error: 'APR_POLLSET_NOCOPY' undeclared (first use in
> this
> >>> function)
> >>> src/poll.c:112: error: (Each undeclared identifier is reported only
> once
> >>> src/poll.c:112: error: for each function it appears in.)
> >>> src/poll.c: In function 'Java_org_apache_tomcat_jni_Poll_poll':
> >>> src/poll.c:306: warning: implicit declaration of function
> >> 'APR_RING_FOREACH'
> >>> src/poll.c:306: error: expected expression before 'tcn_pfde_t'
> >>> src/poll.c:307: error: expected ';' before '{' token
> >>> src/poll.c: In function 'Java_org_apache_tomcat_jni_Poll_maintain':
> >>> src/poll.c:399: warning: implicit declaration of function
> >>> 'APR_RING_FOREACH_SAFE'
> >>> src/poll.c:399: error: expected expression before 'tcn_pfde_t'
> >>> src/poll.c:400: error: expected ';' before '{' token
> >>> src/poll.c:392: warning: unused variable 'now'
> >>> src/poll.c:391: warning: unused variable 'num'
> >>> src/poll.c:391: warning: unused variable 'i'
> >>> src/poll.c: In function 'Java_org_apache_tomcat_jni_Poll_pollset':
> >>> src/poll.c:471: error: expected expression before 'tcn_pfde_t'
> >>> src/poll.c:472: error: expected ';' before '{' token
> >>> make[1]: *** [src/poll.lo] Error 1
> >>> make[1]: Leaving directory
> >>>
> `/usr/share/apache-tomcat-6.0.37/bin/tomcat-native-1.1.27-src/jni/native'
> >>> make: *** [all-recursive] Error 1
> >>>
> >>> This is my version of ap
> >>> Package apr-1.2.7-11.el5_6.5.x86_64 already installed and latest
> version
> >>> Package apr-devel-1.2.7-11.el5_6.5.x86_64 already installed and latest
> >>> version
> >>> Package apr-util-1.2.7-11.el5_5.2.x86_64 already installed and latest
> >>> version
> >>>
> >>> Cant I install this version in centos 5?
> >>>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> >> For additional commands, e-mail: users-help@tomcat.apache.org
> >>
> >>
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


-- 
Randeep
Mob: +919447831699[kerala]
Mob: +919880050349[B'lore]
I blog here:
http://www.randeeppr.me/
Follow me Here:
http://twitter.com/Randeeppr
Poke me here!
http://www.facebook.com/Randeeppr
A little Linux Help
http://www.linuxhelp.in/
Work profile:
http://in.linkedin.com/in/randeeppr

Re: tomcat-native libraries

Posted by Mark Thomas <ma...@apache.org>.
On 17/03/2014 08:10, Randeep wrote:
> On Mon, Mar 17, 2014 at 12:35 PM, Mark Thomas <ma...@apache.org> wrote:
> 
>> On 17/03/2014 04:52, Randeep wrote:
>>> Hi,
>>>
>>> I have a httpd-2.2.3-82.el5.centos.x86_64+mod_jk+apache-tomcat-6.0.37
>> stack
>>>
>>> Whenever I restart the server it shows the following warning.
>>> INFO: The APR based Apache Tomcat Native library which allows optimal
>>> performance in production environments was not found on the
>>> java.library.path:
>>> /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
>>
>> That isn't a warning. Warnings start "WARN: ...".
>>
>> It is an informational message. It informs you that that the native
>> library is not installed and that the native library typically has
>> better performance.
>>
> 
> Yes. Its an informational message. Sorry about it.
> 
>>
>>> Then I tried to install tomcat-native-1.1.27-src
>>
>> Why? To get rid of the log message or to solve a performance problem?
>>
>> Mark
>>
> 
> Actually I'm getting this error on production server.

Again, this is not an error. They start "ERROR: ..." or "FATAL: ..."


> I didn't know about
> tomcat native libraries. If it increase performance then I felt that It
> should be implemented.

Why should you install it?
What performance problem are you trying to solve?
Why do you think that installing the native libraries will solve it?

While the native library does - generally - perform better, it is not a
magic "make it faster" library.


Mark


> That is why I tired to install it.
> 
> 
>>
> 
>>>
>>> But I'm getting the following error.
>>>
>>> #./configure --with-apr=/usr/bin/apr-1-config
>>> --with-java-home=/usr/java/jdk1.7.0_25
>>> then
>>> #make
>>> make[1]: Entering directory
>>> `/usr/share/apache-tomcat-6.0.37/bin/tomcat-native-1.1.27-src/jni/native'
>>> /bin/sh /usr/lib64/apr-1/build/libtool --silent --mode=compile gcc
>> -pthread
>>>  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
>> -fstack-protector
>>> --param=ssp-buffer-size=4 -m64 -mtune=generic -DHAVE_CONFIG_H -DLINUX=2
>>> -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL
>>>
>> -I/usr/share/apache-tomcat-6.0.37/bin/tomcat-native-1.1.27-src/jni/native/include
>>> -I/usr/java/jdk1.7.0_25/include -I/usr/java/jdk1.7.0_25/include/linux
>>>  -I/usr/include/apr-1   -o src/poll.lo -c src/poll.c && touch src/poll.lo
>>> src/poll.c: In function 'Java_org_apache_tomcat_jni_Poll_create':
>>> src/poll.c:112: error: 'APR_POLLSET_NOCOPY' undeclared (first use in this
>>> function)
>>> src/poll.c:112: error: (Each undeclared identifier is reported only once
>>> src/poll.c:112: error: for each function it appears in.)
>>> src/poll.c: In function 'Java_org_apache_tomcat_jni_Poll_poll':
>>> src/poll.c:306: warning: implicit declaration of function
>> 'APR_RING_FOREACH'
>>> src/poll.c:306: error: expected expression before 'tcn_pfde_t'
>>> src/poll.c:307: error: expected ';' before '{' token
>>> src/poll.c: In function 'Java_org_apache_tomcat_jni_Poll_maintain':
>>> src/poll.c:399: warning: implicit declaration of function
>>> 'APR_RING_FOREACH_SAFE'
>>> src/poll.c:399: error: expected expression before 'tcn_pfde_t'
>>> src/poll.c:400: error: expected ';' before '{' token
>>> src/poll.c:392: warning: unused variable 'now'
>>> src/poll.c:391: warning: unused variable 'num'
>>> src/poll.c:391: warning: unused variable 'i'
>>> src/poll.c: In function 'Java_org_apache_tomcat_jni_Poll_pollset':
>>> src/poll.c:471: error: expected expression before 'tcn_pfde_t'
>>> src/poll.c:472: error: expected ';' before '{' token
>>> make[1]: *** [src/poll.lo] Error 1
>>> make[1]: Leaving directory
>>> `/usr/share/apache-tomcat-6.0.37/bin/tomcat-native-1.1.27-src/jni/native'
>>> make: *** [all-recursive] Error 1
>>>
>>> This is my version of ap
>>> Package apr-1.2.7-11.el5_6.5.x86_64 already installed and latest version
>>> Package apr-devel-1.2.7-11.el5_6.5.x86_64 already installed and latest
>>> version
>>> Package apr-util-1.2.7-11.el5_5.2.x86_64 already installed and latest
>>> version
>>>
>>> Cant I install this version in centos 5?
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
> 
> 


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


Re: tomcat-native libraries

Posted by Randeep <ra...@gmail.com>.
On Mon, Mar 17, 2014 at 12:35 PM, Mark Thomas <ma...@apache.org> wrote:

> On 17/03/2014 04:52, Randeep wrote:
> > Hi,
> >
> > I have a httpd-2.2.3-82.el5.centos.x86_64+mod_jk+apache-tomcat-6.0.37
> stack
> >
> > Whenever I restart the server it shows the following warning.
> > INFO: The APR based Apache Tomcat Native library which allows optimal
> > performance in production environments was not found on the
> > java.library.path:
> > /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
>
> That isn't a warning. Warnings start "WARN: ...".
>
> It is an informational message. It informs you that that the native
> library is not installed and that the native library typically has
> better performance?
>

Yes. Its an informational message. Sorry about it.

>
> > Then I tried to install tomcat-native-1.1.27-src
>
> Why? To get rid of the log message or to solve a performance problem?
>
> Mark
>

Actually I'm getting this error on production server. I didn't know about
tomcat native libraries. If it increase performance then I felt that It
should be implemented. That is why I tired to install it.


>

> >
> > But I'm getting the following error.
> >
> > #./configure --with-apr=/usr/bin/apr-1-config
> > --with-java-home=/usr/java/jdk1.7.0_25
> > then
> > #make
> > make[1]: Entering directory
> > `/usr/share/apache-tomcat-6.0.37/bin/tomcat-native-1.1.27-src/jni/native'
> > /bin/sh /usr/lib64/apr-1/build/libtool --silent --mode=compile gcc
> -pthread
> >  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fstack-protector
> > --param=ssp-buffer-size=4 -m64 -mtune=generic -DHAVE_CONFIG_H -DLINUX=2
> > -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL
> >
> -I/usr/share/apache-tomcat-6.0.37/bin/tomcat-native-1.1.27-src/jni/native/include
> > -I/usr/java/jdk1.7.0_25/include -I/usr/java/jdk1.7.0_25/include/linux
> >  -I/usr/include/apr-1   -o src/poll.lo -c src/poll.c && touch src/poll.lo
> > src/poll.c: In function 'Java_org_apache_tomcat_jni_Poll_create':
> > src/poll.c:112: error: 'APR_POLLSET_NOCOPY' undeclared (first use in this
> > function)
> > src/poll.c:112: error: (Each undeclared identifier is reported only once
> > src/poll.c:112: error: for each function it appears in.)
> > src/poll.c: In function 'Java_org_apache_tomcat_jni_Poll_poll':
> > src/poll.c:306: warning: implicit declaration of function
> 'APR_RING_FOREACH'
> > src/poll.c:306: error: expected expression before 'tcn_pfde_t'
> > src/poll.c:307: error: expected ';' before '{' token
> > src/poll.c: In function 'Java_org_apache_tomcat_jni_Poll_maintain':
> > src/poll.c:399: warning: implicit declaration of function
> > 'APR_RING_FOREACH_SAFE'
> > src/poll.c:399: error: expected expression before 'tcn_pfde_t'
> > src/poll.c:400: error: expected ';' before '{' token
> > src/poll.c:392: warning: unused variable 'now'
> > src/poll.c:391: warning: unused variable 'num'
> > src/poll.c:391: warning: unused variable 'i'
> > src/poll.c: In function 'Java_org_apache_tomcat_jni_Poll_pollset':
> > src/poll.c:471: error: expected expression before 'tcn_pfde_t'
> > src/poll.c:472: error: expected ';' before '{' token
> > make[1]: *** [src/poll.lo] Error 1
> > make[1]: Leaving directory
> > `/usr/share/apache-tomcat-6.0.37/bin/tomcat-native-1.1.27-src/jni/native'
> > make: *** [all-recursive] Error 1
> >
> > This is my version of ap
> > Package apr-1.2.7-11.el5_6.5.x86_64 already installed and latest version
> > Package apr-devel-1.2.7-11.el5_6.5.x86_64 already installed and latest
> > version
> > Package apr-util-1.2.7-11.el5_5.2.x86_64 already installed and latest
> > version
> >
> > Cant I install this version in centos 5?
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


-- 
Randeep
Mob: +919447831699[kerala]
Mob: +919880050349[B'lore]
I blog here:
http://www.randeeppr.me/
Follow me Here:
http://twitter.com/Randeeppr
Poke me here!
http://www.facebook.com/Randeeppr
A little Linux Help
http://www.linuxhelp.in/
Work profile:
http://in.linkedin.com/in/randeeppr

Re: tomcat-native libraries

Posted by Mark Thomas <ma...@apache.org>.
On 17/03/2014 04:52, Randeep wrote:
> Hi,
> 
> I have a httpd-2.2.3-82.el5.centos.x86_64+mod_jk+apache-tomcat-6.0.37 stack
> 
> Whenever I restart the server it shows the following warning.
> INFO: The APR based Apache Tomcat Native library which allows optimal
> performance in production environments was not found on the
> java.library.path:
> /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib

That isn't a warning. Warnings start "WARN: ...".

It is an informational message. It informs you that that the native
library is not installed and that the native library typically has
better performance?

> Then I tried to install tomcat-native-1.1.27-src

Why? To get rid of the log message or to solve a performance problem?

Mark


> 
> But I'm getting the following error.
> 
> #./configure --with-apr=/usr/bin/apr-1-config
> --with-java-home=/usr/java/jdk1.7.0_25
> then
> #make
> make[1]: Entering directory
> `/usr/share/apache-tomcat-6.0.37/bin/tomcat-native-1.1.27-src/jni/native'
> /bin/sh /usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -pthread
>  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -m64 -mtune=generic -DHAVE_CONFIG_H -DLINUX=2
> -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL
> -I/usr/share/apache-tomcat-6.0.37/bin/tomcat-native-1.1.27-src/jni/native/include
> -I/usr/java/jdk1.7.0_25/include -I/usr/java/jdk1.7.0_25/include/linux
>  -I/usr/include/apr-1   -o src/poll.lo -c src/poll.c && touch src/poll.lo
> src/poll.c: In function 'Java_org_apache_tomcat_jni_Poll_create':
> src/poll.c:112: error: 'APR_POLLSET_NOCOPY' undeclared (first use in this
> function)
> src/poll.c:112: error: (Each undeclared identifier is reported only once
> src/poll.c:112: error: for each function it appears in.)
> src/poll.c: In function 'Java_org_apache_tomcat_jni_Poll_poll':
> src/poll.c:306: warning: implicit declaration of function 'APR_RING_FOREACH'
> src/poll.c:306: error: expected expression before 'tcn_pfde_t'
> src/poll.c:307: error: expected ';' before '{' token
> src/poll.c: In function 'Java_org_apache_tomcat_jni_Poll_maintain':
> src/poll.c:399: warning: implicit declaration of function
> 'APR_RING_FOREACH_SAFE'
> src/poll.c:399: error: expected expression before 'tcn_pfde_t'
> src/poll.c:400: error: expected ';' before '{' token
> src/poll.c:392: warning: unused variable 'now'
> src/poll.c:391: warning: unused variable 'num'
> src/poll.c:391: warning: unused variable 'i'
> src/poll.c: In function 'Java_org_apache_tomcat_jni_Poll_pollset':
> src/poll.c:471: error: expected expression before 'tcn_pfde_t'
> src/poll.c:472: error: expected ';' before '{' token
> make[1]: *** [src/poll.lo] Error 1
> make[1]: Leaving directory
> `/usr/share/apache-tomcat-6.0.37/bin/tomcat-native-1.1.27-src/jni/native'
> make: *** [all-recursive] Error 1
> 
> This is my version of ap
> Package apr-1.2.7-11.el5_6.5.x86_64 already installed and latest version
> Package apr-devel-1.2.7-11.el5_6.5.x86_64 already installed and latest
> version
> Package apr-util-1.2.7-11.el5_5.2.x86_64 already installed and latest
> version
> 
> Cant I install this version in centos 5?
> 


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