The application has a heap of 8gb and creates a lot of short living objects I noticed that it often paused for some seconds to do garbage collection Unfortunately (and in spite of the disclaimers in the documentation), many developers decide they know better than the jvm when to collect memory and introduce exactly this type of issue Since we are getting java.lang.outofmemoryerror According to this blog entry For a concise summary of command line combinations, you might also be interested in this overview.
I am trying to extract the url for facebook video file page from the facebook video link but i am not able to proceed how The facebook video url i have. In the latter case the gc overhead checking was still running, it just sounds like a bigger heap solved the gc thrashing issues in your case (this will not always help). Do you load many different classes dynamically Then you could maybe define a free ratio on the metaspace so that always enough space for new classes is available and no resizing will be needed in critical situations. The x's represent numbers only