On Mon, Jul 23, 2012 at 7:13 PM, Dileepa Jayakody <[email protected]> wrote:

> Hi Pradeep and all,
>
>
> The bootupvalidator's SystemValidator calls the underlying MBeans of the
> JVM to read these system configurations.
> By the looks of it (see [1]), IBM JDK's OperatingSystemMXBean
> implementation doesn't support following attributes which are checked by
> the SystemValidator.
>

Yes, following debug level logs shows exactly that is happening.

[2012-07-23 20:15:15,298] DEBUG
{org.wso2.carbon.core.bootup.validator.internal.BootupValidationActivator}
-  Bootup Validator is activated...
[2012-07-23 20:15:15,299]  WARN
{org.wso2.carbon.core.bootup.validator.SystemValidator} -  Could not
validate the system for configuration parameter : swap
[2012-07-23 20:15:15,299] DEBUG
{org.wso2.carbon.core.bootup.validator.SystemValidator} -  Error occured
while trying to validate configuration parameter : swap
javax.management.AttributeNotFoundException: No such attribute :
TotalSwapSpaceSize
at
com.ibm.lang.management.DynamicMXBeanImpl.getAttribute(DynamicMXBeanImpl.java:187)
 at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:678)
at
com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:650)
 at
org.wso2.carbon.core.bootup.validator.SystemValidator.getSwap(SystemValidator.java:231)
at
org.wso2.carbon.core.bootup.validator.SystemValidator.validateConfiguration(SystemValidator.java:87)
 at
org.wso2.carbon.core.bootup.validator.SystemValidator.validate(SystemValidator.java:59)
at
org.wso2.carbon.core.bootup.validator.internal.BootupValidationActivator.validateConfigurations(BootupValidationActivator.java:61)
 at
org.wso2.carbon.core.bootup.validator.internal.BootupValidationActivator.start(BootupValidationActivator.java:49)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
 at java.security.AccessController.doPrivileged(AccessController.java:251)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
 at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
 at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
at
org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1130)
 at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
 at
org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
 at
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
 at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
[2012-07-23 20:15:15,301]  WARN
{org.wso2.carbon.core.bootup.validator.SystemValidator} -  Could not
validate the system for configuration parameter : ulimit
[2012-07-23 20:15:15,301] DEBUG
{org.wso2.carbon.core.bootup.validator.SystemValidator} -  Error occured
while trying to validate configuration parameter : ulimit
javax.management.AttributeNotFoundException: No such attribute :
MaxFileDescriptorCount
at
com.ibm.lang.management.DynamicMXBeanImpl.getAttribute(DynamicMXBeanImpl.java:187)
 at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:678)
at
com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:650)
 at
org.wso2.carbon.core.bootup.validator.SystemValidator.getOpenFilesLimit(SystemValidator.java:250)
at
org.wso2.carbon.core.bootup.validator.SystemValidator.validateConfiguration(SystemValidator.java:96)
 at
org.wso2.carbon.core.bootup.validator.SystemValidator.validate(SystemValidator.java:59)
at
org.wso2.carbon.core.bootup.validator.internal.BootupValidationActivator.validateConfigurations(BootupValidationActivator.java:61)
 at
org.wso2.carbon.core.bootup.validator.internal.BootupValidationActivator.start(BootupValidationActivator.java:49)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
 at java.security.AccessController.doPrivileged(AccessController.java:251)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
 at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
 at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
at
org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1130)
 at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
 at
org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
 at
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
 at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
[2012-07-23 20:15:15,308]  WARN
{org.wso2.carbon.core.bootup.validator.SystemValidator} -  Could not
validate the system for configuration parameter : RAM
[2012-07-23 20:15:15,308] DEBUG
{org.wso2.carbon.core.bootup.validator.SystemValidator} -  Error occured
while trying to validate configuration parameter : RAM
javax.management.AttributeNotFoundException: No such attribute :
TotalPhysicalMemorySize
at
com.ibm.lang.management.DynamicMXBeanImpl.getAttribute(DynamicMXBeanImpl.java:187)
 at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:678)
at
com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:650)
 at
org.wso2.carbon.core.bootup.validator.SystemValidator.getRAM(SystemValidator.java:215)
at
org.wso2.carbon.core.bootup.validator.SystemValidator.validateConfiguration(SystemValidator.java:83)
 at
org.wso2.carbon.core.bootup.validator.SystemValidator.validate(SystemValidator.java:59)
at
org.wso2.carbon.core.bootup.validator.internal.BootupValidationActivator.validateConfigurations(BootupValidationActivator.java:61)
 at
org.wso2.carbon.core.bootup.validator.internal.BootupValidationActivator.start(BootupValidationActivator.java:49)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
 at java.security.AccessController.doPrivileged(AccessController.java:251)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
 at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
 at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
at
org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1130)
 at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
 at
org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
 at
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
 at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)


>
> TotalPhysicalMemorySize
> TotalSwapSpaceSize
> MaxFileDescriptorCount
>
> I will look into this more, and see if any improvement can be made.
>
> Thanks,
> Dileepa
>
> [1]
> http://publib.boulder.ibm.com/infocenter/java7sdk/v7r0/index.jsp?topic=%2Fcom.ibm.java.aix.70.doc%2Fdiag%2Ftools%2Fmxbeans.html
>
>
> On Mon, Jul 23, 2012 at 6:55 PM, Pradeep Fernando <[email protected]>wrote:
>
>> Hi,
>>
>> if this is a problem with written code then we should fix this. But if
>> this is a limitation of the underlying API we are using then this is ok i
>> guess. After all we created this to verify the environment. So in this case
>> we cant verify it, hence warning message. Which is fair enough for me.
>>
>>
>> --Pradeep
>>
>
>
>
> --
> Dileepa Jayakody,
> Software Engineer, WSO2 Inc.
> Lean . Enterprise . Middleware
>
> Mobile : +94777-857616
>
>


-- 
*Kishanthan Thangarajah*
Software Engineer,
Development Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com*
Twitter - *http://twitter.com/kishanthan*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to