On 05.06.2009 15:40, Mohamedin wrote:
> Dear everybody,
> 
> I am trying to install APR for tomcat 6.0.18 on debian
> I did the following:
> 
> apt-get install libapr1-dev libssl-dev
> cd tomcat-native-1.1.16-src/jni/native
> ./configure --with-apr=/usr/bin/apr-1-config
> --with-java-home=/usr/lib/jvm/java-1.5.0-sun  --prefix=/usr/lib/catalina
> make
> make install
> 
> 
> and created the file $CATALINA_HOME/bin/setenv.sh which has the
> following lines
>    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CATALINA_HOME/lib
>    export LD_LIBRARY_PATH
> 
> Then when I started tomcat the log shows the following lines and then
> nothing (It hangs)
> 
> 05.06.2009 14:15:46 org.apache.catalina.core.AprLifecycleListener init
> INFO: Loaded APR based Apache Tomcat Native library 1.1.16.
> 05.06.2009 14:15:46 org.apache.catalina.core.AprLifecycleListener init
> INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
> [false], random [true].
> 
> 
> I have tryed to stop and run it again manytimes and the same result.

<speculation>

If it looks hanging during startup, it might initialize randomness and
use /dev/random (blocking good quality randomness) instead of
/dev/urandom (non-blocking pseudo-randomness). You can try to get a
stack during the "hang" using "gstack".

Do you have a /dev/urandom device? Can you read from it, e.g. if you do a

dd if=/dev/urandom of=/dev/null count=100

(reading 100 blocks of 512 bytes of randomness), does it return fast?
What happens if you do the same again during the "hang"?

</speculation>

Regards,

Rainer

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

Reply via email to