dzhi's blog

By dzhi, history, 2 years ago, In English

Round 137 problem G (https://mirror.codeforces.com/contest/1743/problem/G) Java submission always fails with following error: Error occurred during initialization of VM Initial heap size set to a larger value than the maximum heap size

The problem has an usual memory limit per test of 4 megabytes. The error is likely due to value of -Xmx is smaller than -Xms in the test launch. -Xms: This specifies initial heap size for JVM -Xmx: This specifies maximum heap memory size for JVM

  • Vote: I like it
  • +23
  • Vote: I do not like it

»
12 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Hi dzhi, I'm pretty new to java, and I found similar issue in one of the problems I was solving using java 8. Can you tell me how do we overcome this issue?

We can overcome these issues in our system by changing the values of Xms ans Xmx, but what about CF?