SeLayer insertLayer=null;
SeConnection conn=null;
try {
conn = new SeConnection(server,81, database, user, password);
Vector layerList = conn.getLayers();
for (int index = 0; index < layerList.size(); index++) {
SeLayer layer = (SeLayer) layerList.elementAt(index);
if(layer.getName().equalsIgnoreCase("test")){
insertLayer=layer;
}
}
}catch(Exception ex){
ex.printStackTrace();
}
这行代码 conn = new SeConnection(server,81, database, user, password);
一直报内存溢出,内存已设置成最大1500M, 还是溢出,在线等高手帮忙解决
获取个连接需要那么多内存吗? 还是我哪写的不对啊
错误信息:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at com.esri.sde.sdk.client.d.a(Unknown Source)
at com.esri.sde.sdk.client.SeConnection.w(Unknown Source)
at com.esri.sde.sdk.client.SeConnection.(Unknown Source)
at com.tdt.hyjc.service.ArcGisTool.addPointToSDE(ArcGisTool.java:260)
at com.tdt.hyjc.service.ArcGisTool.main(ArcGisTool.java:366)