If the diag server (Tomcat) issues an OutOfMemory Exception due to the server running out of memory, this can be changed very easily in the TomCat Properties Editor.
Steps:
Stop the diag Server
Change the Memory pool
Start the diag Server