commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Melech (JIRA)" <j...@apache.org>
Subject [jira] Commented: (IO-245) FileSystemUtils.freeSpaceKb fail and causes to reboot the machine
Date Sun, 06 Jun 2010 12:02:53 GMT

    [ https://issues.apache.org/jira/browse/IO-245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12876037#action_12876037
] 

Pavel Melech commented on IO-245:
---------------------------------

Maybe.....
Can you tell me where is the problem here:

    private boolean isDiskSpaceAvailable() {
        try {
            
            freeSpaceInMB = (FileSystemUtils.freeSpaceKb(serverWorkDir)) / 1024;
            if (freeSpaceInMB < diskSpaceBuffer) {
                systemLogger.info("The freeDiskSpaceBuffer is " + diskSpaceBuffer + " and
available disk Space InMB " + freeSpaceInMB);
                return false;
            }
        } catch (Exception e) {
            systemLogger.error("Filed to check server free disk space. ", e);
            return false;
        }
        return true;
    }

This is a method from ServerDiskSpaceChecker. The exception throws from first line after try.....


> FileSystemUtils.freeSpaceKb fail and causes to reboot the machine
> -----------------------------------------------------------------
>
>                 Key: IO-245
>                 URL: https://issues.apache.org/jira/browse/IO-245
>             Project: Commons IO
>          Issue Type: Bug
>    Affects Versions: 1.4
>         Environment: Win 2003 64-bit, JSDK 1.5 update 6.
>            Reporter: Pavel Melech
>            Priority: Critical
>
> My application server is running as windows service. One of it's components - responsible
check free disk space  Then it call to FileSystemUtils.freeSpaceKb(path) - throws IO Exception
and server shutting down: 
> INFO   | jvm 1    | 2010/06/02 23:25:03 | 23:25:03,535 ERROR [ManagementLog] Filed to
check server free disk space. 
> INFO   | jvm 1    | 2010/06/02 23:25:03 | java.io.IOException: Command line returned
OS error code '128' for command [cmd.exe, /C, dir /-c D:]
> INFO   | jvm 1    | 2010/06/02 23:25:03 | 	at org.apache.commons.io.FileSystemUtils.performCommand(FileSystemUtils.java:419)
> INFO   | jvm 1    | 2010/06/02 23:25:03 | 	at org.apache.commons.io.FileSystemUtils.freeSpaceWindows(FileSystemUtils.java:225)
> INFO   | jvm 1    | 2010/06/02 23:25:03 | 	at org.apache.commons.io.FileSystemUtils.freeSpaceOS(FileSystemUtils.java:194)
> INFO   | jvm 1    | 2010/06/02 23:25:03 | 	at org.apache.commons.io.FileSystemUtils.freeSpaceKb(FileSystemUtils.java:166)
> INFO   | jvm 1    | 2010/06/02 23:25:03 | 	at com.proficiency.cg.core.utils.job.ServerDiskSpaceChecker.isDiskSpaceAvailable(ServerDiskSpaceChecker.java:151)
> INFO   | jvm 1    | 2010/06/02 23:25:03 | 	at com.proficiency.cg.core.utils.job.ServerDiskSpaceChecker.perform(ServerDiskSpaceChecker.java:93)
> INFO   | jvm 1    | 2010/06/02 23:25:03 | 	at org.jboss.varia.scheduler.Scheduler$Listener.handleNotification(Scheduler.java:1221)
> INFO   | jvm 1    | 2010/06/02 23:25:03 | 	at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown
Source)
> INFO   | jvm 1    | 2010/06/02 23:25:03 | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> INFO   | jvm 1    | 2010/06/02 23:25:03 | 	at java.lang.reflect.Method.invoke(Method.java:585)
> INFO   | jvm 1    | 2010/06/02 23:25:03 | 	at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:138)
> INFO   | jvm 1    | 2010/06/02 23:25:03 | 	at $Proxy9.handleNotification(Unknown Source)
> INFO   | jvm 1    | 2010/06/02 23:25:03 | 	at javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:221)
> INFO   | jvm 1    | 2010/06/02 23:25:03 | 	at javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:184)
> INFO   | jvm 1    | 2010/06/02 23:25:03 | 	at javax.management.timer.Timer.sendNotification(Timer.java:1295)
> INFO   | jvm 1    | 2010/06/02 23:25:03 | 	at javax.management.timer.Timer.notifyAlarmClock(Timer.java:1264)
> INFO   | jvm 1    | 2010/06/02 23:25:03 | 	at javax.management.timer.TimerAlarmClock.run(Timer.java:1347)
> INFO   | jvm 1    | 2010/06/02 23:25:03 | 	at java.util.TimerThread.mainLoop(Timer.java:512)
> INFO   | jvm 1    | 2010/06/02 23:25:03 | 	at java.util.TimerThread.run(Timer.java:462)
> STATUS | wrapper  | 2010/06/02 23:25:16 | Machine is shutting down.
> INFO   | jvm 1    | 2010/06/02 23:25:16 | 23:25:16,754 INFO  [Server] JBoss SHUTDOWN:
Undeploying all packages
>   

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message