AS400 jt400获取RAM使用率

LSt*_*ike 1 java memory ram jt400 ibm-midrange

我只是试验jt400.jar从一个接收系统信息AS400.

我想通过使用类SystemStatus和如何阅读如何连接以及如何接收值SystemValues.(只需找到这些值的解释,给我任何提示?)

任何人都可以告诉我,哪些功能SystemStatus可以让我使用RAM或者接收这些信息?

private static void getSystemStatus() throws AS400SecurityException, ErrorCompletingRequestException,
            InterruptedException, IOException, ObjectDoesNotExistException, RequestNotSupportedException {
        //Connect to AS400
        AS400 as400 = new AS400("myAs400", "myUser", "myPassword");

        //Reading SystemStatus like CPU usage and hdd usage
        SystemStatus systemStatus = new SystemStatus(as400);
        System.out.println(systemStatus.getPercentProcessingUnitUsed());
        System.out.println(systemStatus.getActiveJobsInSystem());

        //Reading SystemValues
        SystemValueList sysValList = new SystemValueList(as400);
        Vector<SystemValue> sysValVec = new Vector<SystemValue>();
        sysValVec = sysValList.getGroup(SystemValueList.GROUP_ALL);

        System.out.println("<<<<  SystemValues >>>>");
        for (SystemValue systemValue : sysValVec) {
            String sysValName = systemValue.getName();
            systemValue.getValue();
            System.out.println("Value: " + sysValName + " - " + systemValue.getValue());
        }
        System.out.println("<<<<  SystemValues >>>>");
    }
Run Code Online (Sandbox Code Playgroud)

我已经阅读了很多文档,但无法找到任何内容.

http://www-01.ibm.com/support/knowledgecenter/ssw_ibm_i_71/rzahh/as400obj.htm http://itknowledgeexchange.techtarget.com/itanswers/system-information-into-a-file/ http:// www .ibm.com/developerworks的/ ibmi /库/ I-javatoolbox /

提前致谢

Cha*_*les 6

我不认为你会找到这些信息.

IBM i操作系统(又名OS/400)没有单独看到RAM和HDD.相反,它会看到一个称为单级存储的大型地址空间.

http://db2fori.blogspot.com/2012/11/one-of-crown-jewels-single-level-storage.html

当然,低级技术独立机器接口(TIMI)知道RAM/SSD/HDD.但那深埋了.IBM通过它自己的命令来表示一些信息,例如

Work Disk Status (WRKDSKSTS)
               Size    % 
Unit  Type      (M)  Used
   1  4327    52923  68.9
   2  4327    52923  68.9
Run Code Online (Sandbox Code Playgroud)

但内存基本上总是100%使用.系统基本上将所有RAM视为来自辅助(SSD/HDD)存储的对象的缓存.