Tag Archives: Debug slow

Idea for Mac setting JVM running parameters to solve running stuck problem

Mac platform, idea running project Karton

resolvent:

1、 Modify the host file:

Sudo VIM/private/etc/hosts
will

127.0.0.1 localhost
is modified to:

127.0.0.1 localhost [host name]. Local
problem solved
how to view your own host name?Use the following command:

hostname

XXX. Local is the information that needs to be added to the hosts file.

2、 Modify the VM parameters to the appropriate size
idea – help eidit custom VM options

-Xms2048m// minimum running memory
– xmx4096m// maximum running memory
– XX: reservedcodacache size = 240m// code cache size
(adjust according to the computer configuration) this setting is 16g memory configuration

3、 Reduce unnecessary breakpoint settings when debugging or running a project