Results 1 to 6 of 6
  1. #1
    dmna007 is offline Member
    Join Date
    May 2012
    Posts
    13
    Rep Power
    0

    Default 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

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,450
    Rep Power
    19

    Default 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.
    Please do not ask for code as refusal often offends.

  3. #3
    dmna007 is offline Member
    Join Date
    May 2012
    Posts
    13
    Rep Power
    0

    Default 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

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,450
    Rep Power
    19

    Default 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.
    Please do not ask for code as refusal often offends.

  5. #5
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,189
    Rep Power
    19

    Default Re: Java runtime logging to hard disk

    Moved from Java JRE

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  6. #6
    dmna007 is offline Member
    Join Date
    May 2012
    Posts
    13
    Rep Power
    0

    Default 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!

Similar Threads

  1. Replies: 25
    Last Post: 04-09-2012, 04:33 AM
  2. Serial number of exernal hard disk/Thumbdrive
    By manucng in forum Networking
    Replies: 13
    Last Post: 11-14-2011, 08:09 AM
  3. Hard Disk Bottleneck
    By urbanleg in forum New To Java
    Replies: 3
    Last Post: 09-27-2011, 03:02 PM
  4. Replies: 2
    Last Post: 07-18-2011, 01:51 PM
  5. Retrieve Image From Hard Disk
    By sayan751 in forum AWT / Swing
    Replies: 3
    Last Post: 02-20-2009, 03:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •