Skip to content

Coastal is very slow when invoked via commandline #44

@DonatoClun

Description

@DonatoClun

Hi guys,

I've been running coastal using the startup script in build/install/coastal/bin and I noticed that is much slower (>10x) than when executed via IDE (I'm using intellij).

Assertions -ea are disabled, the only difference that I've been able to identify is the classpath passed to java, and in fact if I modify the startup script and use the same classpath generated by intellij, it seems to work at normal speed.

Upon further investigation (sampling the execution using VisualVM), it appears that coastal is spending an extremely large amount of time in the method za.ac.sun.cs.coastal.instrument.InstrumentationClassManager.loadFromJar().

I reproduced the issue in a clean docker container, so it should not be related to the specific configuration of my machine.

Any idea or suggestion?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions