• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Precompiling APR for tomcat

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I have installed the apr libraries for tomcat.
I used "./configure --with-apr=/usr --with-java-home=/usr/lib/jvm/java-1.6.0-sun-1.6.0.22.x86_64 && make && make install"

In my production server I just don't want to run this command again and again from my rpm's post section

Is copying the /usr/local/apr on my production server enough to get APR up and running for tomcat?



 
Saloon Keeper
Posts: 27919
198
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Copying the file(s) would be a start, but you will probably also have to set the LD_LIBRARY_PATH. See the notes generated by the build process at the bottom of your output.

I'll freely confess that I've never been desperate enough for performance to go to all the trouble of activating APR. Maybe if someone published some credible statistics, I'd reconsider, but at current hardware/manpower pricing ratios, it just hasn't been worth the extra maintenance work if I can throw more hardware at it instead.
 
sumit anand kumar
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes I am doing export JAVA_OPTS="$JAVA_OPTS -Djava.library.path=/usr/local/apr/lib" in the setenv.sh for tomcat.
From my initial tests it looks like it works. Anybody else with their opinions?

Tim Holloway wrote:Copying the file(s) would be a start, but you will probably also have to set the LD_LIBRARY_PATH. See the notes generated by the build process at the bottom of your output.

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic