GeoServer crashes tomcat when THREDDS is deployed in tomcat

Description

Both tomcat and THREDDS work fine (even with geoserver.war deployed). However, when trying to access localhost:8080/geoserver browser keeps loading indefinitely over a blank screen (it never loads geoserver). Moreover, after trying to access geoserver, both tomcat and THREDDS become also inaccessible. catalina.out shows this:

Jul 16, 2015 5:54:44 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 89171 ms
Exception in thread "http-bio-8080-exec-4"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "http-bio-8080-exec-4"

Environment

Ubuntu 15.04
Apache Tomcat 7
Sun Java JRE 7
THREDDS 4

Assignee

Unassigned

Reporter

Sebastian Rico Chinchilla

Triage

None

Fix versions

None

Affects versions

Components

Priority

Medium
Configure