Unable to add the resource because there was insufficient free space available tomcat 8
When you get this error in Tomcat 8 one possible solution is
1) Go to $CATALINA_BASE/conf/context.xml
2) In Context element add
<!-- The default value is 10240 kbytes, even when not added to context.xml.
So increase it high enough, until the problem disappears, for example set it to
a value 5 times as high: 51200. -->
<Resources cacheMaxSize="51200" />
as the default memory is not enough and it needs more for execution