I have a WebSphere Application Server V8.5 Liberty Profile in eclipse. My webapp has been giving java.lang.OutOfMemoryError and thus I need to increase the heap size. As this and this post suggested I changed the server.xml, by adding jvmEntries tag (It was not previously there):