Differences between revisions 4 and 5
Revision 4 as of 2008-03-05 18:11:58
Size: 1440
Editor: markt
Comment: Add question list to start.
Revision 5 as of 2009-09-20 23:57:04
Size: 1458
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
 1. [#Q1 When I run ps (on Linux), why do I see my java process a bazillion times!]
 1. [#Q2 How do I run without an X server and still get graphics?]
 1. [#Q3 Tomcat dies after I log out!]
 1. [[#Q1|When I run ps (on Linux), why do I see my java process a bazillion times!]]
 1. [[#Q2|How do I run without an X server and still get graphics?]]
 1. [[#Q3|Tomcat dies after I log out!]]
Line 9: Line 9:
[[Anchor(Q1)]]'''When I run ps (on Linux), why do I see my java process a bazillion times!''' <<Anchor(Q1)>>'''When I run ps (on Linux), why do I see my java process a bazillion times!'''
Line 11: Line 11:
Linux implemented threads as processes. Due to other gory details that is beyond the scope of this FAQ - the ps command doesn't work correctly with respect to threads. You can get more gory details [http://www.onlamp.com/pub/a/onlamp/2002/11/07/linux_threads.html here] and [http://pauillac.inria.fr/~xleroy/linuxthreads/faq.html#D here] . Linux implemented threads as processes. Due to other gory details that is beyond the scope of this FAQ - the ps command doesn't work correctly with respect to threads. You can get more gory details [[http://www.onlamp.com/pub/a/onlamp/2002/11/07/linux_threads.html|here]] and [[http://pauillac.inria.fr/~xleroy/linuxthreads/faq.html#D|here]] .
Line 13: Line 13:
[[Anchor(Q2)]]'''How do I run without an X server and still get graphics?''' <<Anchor(Q2)>>'''How do I run without an X server and still get graphics?'''
Line 15: Line 15:
You either need to run headless or run an alternate X-server. Some more information can be found [http://marc.theaimsgroup.com/?t=104803047600003&r=1&w=2 here], [http://marc.theaimsgroup.com/?l=tomcat-user&m=102335321103262&w=2 here], or [http://marc.theaimsgroup.com/?l=tomcat-user&m=101614645312259&w=2 here]. You either need to run headless or run an alternate X-server. Some more information can be found [[http://marc.theaimsgroup.com/?t=104803047600003&r=1&w=2|here]], [[http://marc.theaimsgroup.com/?l=tomcat-user&m=102335321103262&w=2|here]], or [[http://marc.theaimsgroup.com/?l=tomcat-user&m=101614645312259&w=2|here]].
Line 18: Line 18:
[[Anchor(Q3)]]'''Tomcat dies after I log out!''' <<Anchor(Q3)>>'''Tomcat dies after I log out!'''
Line 20: Line 20:
This is a common complaint when using Solaris. Make sure you use {{{nohup}}} and see [http://marc.theaimsgroup.com/?l=tomcat-user&m=104809785114238&w=2 this thread] This is a common complaint when using Solaris. Make sure you use {{{nohup}}} and see [[http://marc.theaimsgroup.com/?l=tomcat-user&m=104809785114238&w=2|this thread]]

Preface

Questions

  1. When I run ps (on Linux), why do I see my java process a bazillion times!

  2. How do I run without an X server and still get graphics?

  3. Tomcat dies after I log out!

Answers

When I run ps (on Linux), why do I see my java process a bazillion times!

Linux implemented threads as processes. Due to other gory details that is beyond the scope of this FAQ - the ps command doesn't work correctly with respect to threads. You can get more gory details here and here .

How do I run without an X server and still get graphics?

You either need to run headless or run an alternate X-server. Some more information can be found here, here, or here. Or if your are using a JVM 1.4 or better, you can use the system property java.awt.headless=true

Tomcat dies after I log out!

This is a common complaint when using Solaris. Make sure you use nohup and see this thread

FAQ/Linux_Unix (last edited 2014-03-03 10:39:29 by KonstantinKolinko)