Patching Marlin on Windows Server

67 views
Skip to first unread message

Derek Watling

unread,
Jan 6, 2021, 10:03:07 AM1/6/21
to marlin-renderer

I come from a Windows background and have limited knowledge of Java. I have recently setup a new server running:
  • Windows Server 2019 Standard
  • AdoptOpenJDK: 11.0.9.1 (Hotspot)
  • Tomcat 9.0.40
  • Geoserver 2.18.1
When Geoserver is generating new tiles the CPU usage goes over 90% and the system becomes very sluggish. (My previous setup with Java 8 / Tomcat 8 / Marlin performed much better). I suspect that not having Marlin properly enabled is the cause, but have been unable to apply the module patch.

OpenJDK is installed in: C:\Program Files\AdoptOpenJDK\jdk-11.0.9.101-hotspot\
I have downloaded and saved the marlin jar in: C:\Program Files\AdoptOpenJDK\Marlin\marlin-0.9.4.2-Unsafe-OpenJDK9.jar

The usage is given as:
java --patch-module java.desktop=<path>/marlin-0.9.4.2-Unsafe-OpenJDK9.jar ...
but I am unsure how to hanle the directory name containg a space and what needs to come at the end where the ellipsies are. I have tried various things and Googleling with no success.

Also a unsure as to if the patch is only applied once or added to Tomcat's Java options, and what else should be included in the Java Options?

Thank you

Laurent Bourgès

unread,
Jan 6, 2021, 12:56:55 PM1/6/21
to marlin-...@googlegroups.com
Hi,
OpenJDK11 already includes the Marlin renderer v0.9.1.3 (enabled by default) so performance should be good enough. More recent versions should not make a huge difference.

Maybe your tomcat, JVM settings (memory, tuning) or GeoServer configuration are not good.

PS: for latest patch release, you could move your marlin patch file in C:/marlin/ so the path will be easier (fucking windows path syntax !!):
java --patch-module java.desktop=C:/marlin/marlin-0.9.4.2-Unsafe-OpenJDK9.jar ...

Cheers,
Laurent

--
You received this message because you are subscribed to the Google Groups "marlin-renderer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to marlin-render...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/marlin-renderer/65d79b76-c642-4d5c-b782-2ec967500c76n%40googlegroups.com.


--
--
Laurent Bourgès

Derek Watling

unread,
Jan 7, 2021, 2:04:51 AM1/7/21
to marlin-renderer
Hi Laurent

Thank you for the feed back. When I try that patch I then get

Error: Could not find or load main class ...
Caused by: java.lang.ClassNotFoundException: ///

Laurent Bourgès

unread,
Jan 7, 2021, 3:14:33 AM1/7/21
to marlin-...@googlegroups.com
Please be more concrete:
What are your tomcat settings, java command... logs ?

This mailing list is not a support plan for tomcat or java 11...

I just do my best to understand your issue, but without any details, I can't help.

Laurent
The single maintainer of Marlin's projects.

Derek Watling

unread,
Jan 7, 2021, 4:07:28 AM1/7/21
to marlin-renderer
Hi Laurent

Thanks for your help.

After removing the extra java options tht I had documented from my previous installation the performance has improved significantly even when Geoserver is caching tiles in the background.

I had assumed (based on outdated setup guides) that not having the latest Marlin was the bottleneak.

Thank you for your great work on the Marlin projects.

Derek
Reply all
Reply to author
Forward
0 new messages