java - Problems logging into SQL Server 2012 (64 Bit) -


i programming agent-based simulation based on jade framework. framework creates agents (each agent has own thread) , provides standardized interfaces communication between agents.

nevertheless when agents beeing created, accessing ms-sql 2012 (64 bit) server (installed on same machine) @ 1 time. it's easy statement, gives id:

"select geoid "                 + "[weatherman_de].[dbo].[geo]" + " lat_rot = "                 + loc.getlatit() + " , long_rot = " + loc.getlongit(); 

the problem is: when start application everything works fine, it's slow works ok. getting different types of errors, lead application crash directly @ beginning. either it's connection reset:

com.microsoft.sqlserver.jdbc.sqlserverexception: connection reset     @ com.microsoft.sqlserver.jdbc.sqlserverconnection.terminate(sqlserverconnection.java:1352)     @ com.microsoft.sqlserver.jdbc.sqlserverconnection.terminate(sqlserverconnection.java:1339)     @ com.microsoft.sqlserver.jdbc.tdschannel.read(iobuffer.java:1654)     @ com.microsoft.sqlserver.jdbc.sqlserverconnection.prelogin(sqlserverconnection.java:1117)     @ com.microsoft.sqlserver.jdbc.sqlserverconnection.connecthelper(sqlserverconnection.java:1038)     @ com.microsoft.sqlserver.jdbc.sqlserverconnection.login(sqlserverconnection.java:817)     @ com.microsoft.sqlserver.jdbc.sqlserverconnection.connect(sqlserverconnection.java:700)     @ com.microsoft.sqlserver.jdbc.sqlserverdriver.connect(sqlserverdriver.java:842) 

or it's connection refused:

com.microsoft.sqlserver.jdbc.sqlserverexception: tcp/ip  connection host localhost, port 1433 has failed. error:  "connection refused: connect. verify connection properties.  make sure instance of sql server running on host  , accepting tcp/ip connections @ port. make sure tcp  connections port not blocked firewall. 

like mentioned, error messages doesn't occur every time when run application. in 7 of 10 times getting error messages (same preconditions)

when application running fine, checked performance values:

  • the nt server process uses 2,5 gb of ram , 50% cpu.
  • the database 1 gb big , saved on crucial m550 ssd.
  • java(eclipse) ist taking 2 gb of ram (about 2500 threads) , also
    50% of cpu usage. cpu intel 2500k (4 cores)

my application deterministic, aren't random functions or that, may have impact on performance because of if junctions or whatever. output is(or should be) (when it's working) always same.

so there hints can start stabilize database? thinking upgrading computer, that's last option.

maybe not closing resources , exhaust available ones.


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -