I found the following error after training a model in Spark with spylon-kernel(Scala kernel for Jupyter Notebook) on Mac OS X.
CodeCache: size=245760Kb used=2