java.lang.OutOfMemoryError: Java heap space
- by houlahan
i get this error when calling a mysql Prepared Statement every 30 seconds this is the code which is been called:
public static int getUserConnectedatId(Connection conn, int i) throws SQLException {
pstmt = conn.prepareStatement("SELECT UserId from connection where ConnectionId ='" + i + "'");
ResultSet rs = pstmt.executeQuery();
int id…