java - Heap size issue in JSF web App -


i building web application using jsf.i using glassfish ssrver.i trying apply watermark on pdf using itext.it working when try apply watermark on pdf document more 30mb (conatains more 5500 pages) , thorw exception.

type exception report  message  descriptionthe server encountered internal error () prevented fulfilling request.  exception  javax.servlet.servletexception: java.lang.outofmemoryerror: java heap space  root cause  javax.faces.el.evaluationexception: java.lang.outofmemoryerror: java heap space  root cause  java.lang.outofmemoryerror: java heap space      note full stack traces of exception , root causes available in glassfish server open source edition 3.1.2 logs. 


while searching solution , found setting program size, can fix this.
so put these vmargs -xms6000m -xmx6000m
in class's run configuration no effect.
unable understand can solution?thanks


Comments

Popular posts from this blog

javascript - Unusual behaviour when drawing lots of images onto a large canvas -

how can i manage url using .htaccess in php? -

javascript - Chart.js - setting tooltip z-index -