Geoserver stops responding when out of memory and database connections

Description

Geoserver locks up and stops responding for few minutes, then it restarts and works again.
We get java.lang.OutOfMemoryError: Java heap space and
java.lang.RuntimeException: Unable to obtain connection: Cannot get a connection, pool error Timeout waiting for idle object errors. Please see attached geoserver log and request log.
Logs taken after the lockup happened.
Postgres and Geoserver are running on the same box, no firewall issues.

Environment

Windows server 2008, postgres 9.2, java 1.7.0

Assignee

Unassigned

Reporter

Attila Peller

Triage

None

Fix versions

None

Affects versions

Components

Priority

Medium
Configure