I've attached an image of the view I get:
The spike that you see in the first graph from around 70 to 120 is when I add call my function to add the file to mySQL. Ironically, it adds it fine using the profiler. But it doesn't work with the jar. I guess, its unable to allocate the required memory when I'm running the program via .jar? And maybe the Profiler is intelligent enough to allow it to do so?

