It takes a long time and it doesn't open the localhost:7180.
I checked the logs and the server is stuck in the place "INFO main:com.cloudera.server.cmf.jython.components.JythonObjectFactoryImpl: Constructing Jython object factory" for a long time now.
I've been trying this for 2-3 times and everytime this happens.
There is also another part of the log where I get this,
WARN JvmPauseMonitor:com.cloudera.enterprise.debug.JvmPauseMonitor: Detected pause in JVM or host machine (e.g. a stop the world GC, or JVM not scheduled): paused approximately 35180ms: GC pool 'ConcurrentMarkSweep' had collection(s): count=1 time=34940ms, GC pool 'Copy' had collection(s): count=1 time=213ms
But then I've increased the heapsize, so I'm guessing this is not the problem.