Hi all,

I've tried searching to no avail.

I'm working on a(nother) SSL adapter. However, I've had some issues with
it. There's a native component and I'm trying to tease apart its relationship
with why the client won't handshake. The stack traces aren't overly helpful
and I'd love to attach gdb to this and set a few specific environment
variables.


Query:

Does Tomcat have a mode where it won't fork to a different user and will run
with a limited number of threads? That'd greatly improve my ability to debug.
Something similar to `radiusd -X` or `sshd -d`?


Rationale:

NSS has support for logging calls to its PKCS#11 interface to a file, based
on the presence of environment variables. When I set these environment variables
and directly call the JVM to start Tomcat:

# java -classpath $CLASSPATH $FLAGS org.apache.catalina.startup.Bootstrap start

I see it logging calls when the JDK starts up, but when I hit it with wget on
the TLS port, the resulting PKCS#11 calls aren't logged. When launching in gdb,
I get an error about /sbin/nologin doesn't understand the -c option, which to
me says that Bootstrap is trying to fork and create a new shell (I'm running as
root in a VM and it wants to launch as the tomcat user), dropping my 
environmental
variables I want.

Ideally (for debugging) I'd like to simplify this. Is there a more direct
entry route I can use perhaps?


- Alex


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

Reply via email to