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

Mac platform, idea running project Karton


1、 Modify the host file:

Sudo VIM/private/etc/hosts
will localhost
is modified to: localhost [host name]. Local
problem solved
how to view your own host name?Use the following command:


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

Read More: