Skip to content

Commit

Permalink
Merge pull request #9 from sureshhewabi/master
Browse files Browse the repository at this point in the history
add memory logs
  • Loading branch information
sureshhewabi authored Apr 10, 2021
2 parents f55362f + cf388bf commit 2f19167
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ public class SubmissionToolValidator {
public static void main(String[] args) {
log.info("Starting application....");
log.info("Program arguments: " + Arrays.toString(args));
log.info("\nFree Memory: " + (Runtime.getRuntime().freeMemory()/1024/1024) + "MB" +
"\nTotal Memory: " + (Runtime.getRuntime().totalMemory()/1024/1024) + "MB" +
"\nMax Heap Memory: " + (Runtime.getRuntime().maxMemory()/1024/1024) + "MB");

try {
CommandLine cmd = SubmissionToolValidator.parseArgs(args);
if (args.length > 0) {
Expand Down

0 comments on commit 2f19167

Please sign in to comment.