Re: [DISCUSS]: Handling of SDTOUT/STDERR and Signals

2017-12-21 Thread Juan José Ramos
Thanks both, Using yet another GFSH command (*export stack-traces*) when the system is already a distributed deadlock doesn't seem right :-). On the other hand, *jstack* and *jcmd* both work as expected, but my goal was to make *KILL -QUIT / KILL -3* work, it's easier and widely known. I'll keep w

Re: [DISCUSS]: Handling of SDTOUT/STDERR and Signals

2017-12-20 Thread Kirk Lund
Sorry, my info on redirecting of stdout and stderr was stale (circa GemFire 7.0). Now that the code base is an Apache project, I believe redirecting of stdout and stderr no longer occurs. However, it does shut off the Log4j2 ConsoleAppender to stdout when the LogWriterAppender is activated and turn

Re: [DISCUSS]: Handling of SDTOUT/STDERR and Signals

2017-12-20 Thread Jens Deppe
Hi Juan, Thanks for the detailed analysis. I did some digging too and cannot see why the QUIT signal might be getting lost. I'll do some more investigation... Just for reference, you can still use the 'jstack' tool to get thread dumps although they just show on the terminal where you run the com

Re: [DISCUSS]: Handling of SDTOUT/STDERR and Signals

2017-12-20 Thread Juan José Ramos
Hello again, Regarding my last question from the original email (unformatted jetty logging when enabling --*redirect-output*), it looks like the offending library within the *geode-pulse.war* is *commons-logging-x.x.jar.* The library is configured as *providedCompile* in *build.gradle* and, by def

Re: [DISCUSS]: Handling of SDTOUT/STDERR and Signals

2017-12-19 Thread Kirk Lund
By default Geode redirects stdout and stderr to the value of the log-file property when the Cache starts. If log-file is set to "" then it won't redirect them. When we changed GemFire to use Log4J2 internally, we tried to leave stdout and stderr alone such that the LogWriterAppender would append l

[DISCUSS]: Handling of SDTOUT/STDERR and Signals

2017-12-19 Thread Ju@N
Hello Geode devs, Currently GEODE is "swallowing" all output sent to stdout and stderr by default and there's no way of changing this behavior when starting members through *gfsh*. This, between other things, prevents users, between other things, from playing around with *System.out.println()* dur