Java runtime logging to hard disk
Hi there, im a System Admin with no java programming knowledge at all
Basically staff here use some java apps, some users have issues where the app will be working perfectly well and then they are disconnected. The java developer told me to up the heap size on one pc using the -Xmx512m command, but this didnt help.
The user has the jave console log open all of the time, but when he is disconnected it closes the java run time which also closes the java console, so i am unable to see why the problem occured.
What I would like to do if possible is for the java console to log everything to hard disk at the same time, is this possible?
Thanks
Damien
Re: Java runtime logging to hard disk
You mean the apps they use don't log to a file?
Blimey.
Anyway, here's the Tracing and Logging page, about midway it mentions how to turn tracing on with the console.
Re: Java runtime logging to hard disk
Thats a very interesting read thanks, and no they arent logging to a file which everyone really should be!!!! With this in mind I was hoping there would be a way to turn on logging without having to run around to everyones pc. For example I notice there is a file under Program Files\Java\jre7\lib called logging.properties, I dont suppose I could customise this and it send it out to everyone via the logging script to enable logging?
The problem I forsee is that with every java update the logging settings may be changed, when really the logging should be a constant thing.
Many thanks
Re: Java runtime logging to hard disk
How do they launch their apps?
Could you add the '-Djavaplugin.logging=true' part to whatever they use to launch?
Not sure exactly how you'd manage that, of course.
I was sort of hoping the console would remember the settings between launches.
Re: Java runtime logging to hard disk
Re: Java runtime logging to hard disk
They start the app via a website login page. As far as I can tell i think i'm going to have run around to every pc to enable logging via the windows control panel, java.
I will keep reading for the next couple of days though and if I find a way to set this centrally I'll let you know, but if anyone else knows please let me know!