我建议JSP页面检测连接到我的页面的用户的RAM内存。我用过java代码:
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System.Xml.Serialization;
//
// This source code was auto-generated by xsd, Version=4.6.81.0.
//
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
[System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=false)]
public partial class root {
private bool successField;
private rootData dataField;
private object errorsField;
private object warningsField;
private object infoField;
/// <remarks/>
public bool success {
get {
return this.successField;
}
set {
this.successField = value;
}
}
/// <remarks/>
public rootData data {
get {
return this.dataField;
}
set {
this.dataField = value;
}
}
/// <remarks/>
public object errors {
get {
return this.errorsField;
}
set {
this.errorsField = value;
}
}
/// <remarks/>
public object warnings {
get {
return this.warningsField;
}
set {
this.warningsField = value;
}
}
/// <remarks/>
public object info {
get {
return this.infoField;
}
set {
this.infoField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
public partial class rootData {
private rootDataItem itemField;
/// <remarks/>
public rootDataItem item {
get {
return this.itemField;
}
set {
this.itemField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
public partial class rootDataItem {
private ulong barcodeField;
private rootDataItemChildDocuments childDocumentsField;
/// <remarks/>
public ulong Barcode {
get {
return this.barcodeField;
}
set {
this.barcodeField = value;
}
}
/// <remarks/>
public rootDataItemChildDocuments ChildDocuments {
get {
return this.childDocumentsField;
}
set {
this.childDocumentsField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
public partial class rootDataItemChildDocuments {
private bool successField;
private rootDataItemChildDocumentsData dataField;
private object errorsField;
private object warningsField;
private object infoField;
/// <remarks/>
public bool success {
get {
return this.successField;
}
set {
this.successField = value;
}
}
/// <remarks/>
public rootDataItemChildDocumentsData data {
get {
return this.dataField;
}
set {
this.dataField = value;
}
}
/// <remarks/>
public object errors {
get {
return this.errorsField;
}
set {
this.errorsField = value;
}
}
/// <remarks/>
public object warnings {
get {
return this.warningsField;
}
set {
this.warningsField = value;
}
}
/// <remarks/>
public object info {
get {
return this.infoField;
}
set {
this.infoField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
public partial class rootDataItemChildDocumentsData {
private rootDataItemChildDocumentsDataItem itemField;
/// <remarks/>
public rootDataItemChildDocumentsDataItem item {
get {
return this.itemField;
}
set {
this.itemField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
public partial class rootDataItemChildDocumentsDataItem {
private byte stateIdField;
/// <remarks/>
public byte StateId {
get {
return this.stateIdField;
}
set {
this.stateIdField = value;
}
}
}
但此代码返回服务器的光盘大小。 谢谢你回复我