Hello Please help here in this issue:
called class
CreateHtml CreateHtml = new CreateHtml ();
String GetHtml = CreateHtml.main ();
System.out.println (GetHtml;
CreateHtml = null;
GetHtml = null;
System.gc ();
That is, the class generates html code, prints it and then destroy. As far as I understand, with the memory must be cleared? Memory in the peak load of the operation up to 300 mb (convert images in base64) and remains so to continue, CreateHtml = null; GetHtml = null; System.gc (); not not affect anything. Tell me, what am I doing wrong? How to properly clear the memory in this situation? Thanks in advance!