简体   繁体   中英

TFS Java SDK throws Out of Memory Exception

I am studying on TFS Java SDK, use Java to connect TFS server and do query. It shows a Out of memory exception.

Exception in thread "ReplicaSetStatus:Updater" Exception in thread "Thread-1" java.lang.OutOfMemoryError: Java heap space

Caused by: java.sql.SQLException: Out of Memory
at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
at org.hsqldb.jdbc.jdbcConnection.<init>(Unknown Source)
at org.hsqldb.jdbcDriver.getConnection(Unknown Source)
at org.hsqldb.jdbcDriver.connect(Unknown Source)
at com.microsoft.tfs.core.internal.db.ConnectionConfiguration.createNewConnection(ConnectionConfiguration.java:219)

Till now i have no idea about this. Could you kingly help this.

Try increasing the memory allocated to SQuirreL. Open the script or batch file in a text editor and change the amount of memory allocated. Look for -Xmx256m and replace the 256 with a larger number.

On Windows the file is squirrel-sql.bat, on Linux it is squirrel-sql.sh

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM