2 tianyufeixiang9 tianyufeixiang9 于 2014.02.17 10:39 提问

java 连接sde内存溢出 arcgis

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)

1个回答

tianyufeixiang9
tianyufeixiang9   2014.02.27 10:34

这个问题与arcgis 授权有关,将arcgis破解后此问题就没有了

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!