Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Local plugins loaded slowly in dev mode #777
When I run BIMserver via the LocalDevBimServerStarter, plugins from local directories are only appearing in the list of installed plugins and other places after a considerable amount of time. Trying to execute their functionality, e.g. trigger a service, before they are loaded, naturally results in errors. Why is that taking so long? Does BIMserver carry out some other background task before loading the plugins? I did not check whether it is the same with running from the normal Jar. This might be acceptable for normal server operation, but is a bit inconvenient for plugin development.
referenced this issue
Jul 11, 2018
Hi Helga, at some point, BIMserver did some cleanup of the database during startup, which was implemented badly and took longer for bigger databases, this has been fixed in GIT, but I have yet to make a new build. But I assume you are running from GIT master?
Other than that I can't actually replicate this, but that might be my hardware too. Are you running from SSD? Any anti virus software installed? How long would you say it takes before everything is working?
I could look into at least making sure the "RUNNING" status becomes active when everything (for example also the web modules) are ready for use.
Git head of master: yes, SSD: yes, AntiVirus: yes. Currently it takes roughly 10s until server state is RUNNING, another 10s until bimvie.ws is loaded and then 20-30s until the local plugin shows up, the remote plugins are there earlier. I think yesterday it was longer, but did not measure. I see, there may be plenty of reasons.
Not sure when the status should be considered "RUNNING". If you want to leave it as it is, you can close this issue.
Thank your for the debugging tip. I am using IntelliJ, but hot-swap works there too, just tried successfully.