JVM crash using virtual threads with Camel http client

Jonathan Henson jonathan.henson at hcl.com
Tue Jun 15 14:49:46 UTC 2021


In brief:

import the maven project into Eclipse
configure it to use the correct JRE (i.e. one with Loom) run Server once Server's started, run Client.

The above in more detail and with screenshots:

https://github.com/JonDGH/camel-loom/blob/main/camel-loom-eclipse-notes.pdf

Server uses the Jetty Camel component to listen on port 8080.  In the code uploaded to github, the Server is configured to use virtual threads (the commented out line would use platform threads instead; using neither would use the default pooling strategy)

Client uses the http Camel component to send requests to 8080 and wait for replies.  Currently it's configured to use a new virtual thread for each request / reply (has commented out code to use a new platform thread, or a pool of platform threads).

-Jon

-----Original Message-----
From: Alan Bateman [mailto:Alan.Bateman at oracle.com]
Sent: 15 June 2021 13:43
To: Jonathan Henson <jonathan.henson at hcl.com>
Subject: Re: JVM crash using virtual threads with Camel http client

[CAUTION: This Email is from outside the Organization. Unless you trust the sender, Don't click links or open attachments as it may be a Phishing email, which can steal your Information and compromise your Computer.]

On 14/06/2021 16:04, Jonathan Henson wrote:
> I've put the attachment here:
>
> https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2F%2Fgithub.com%2FJonDGH%2Fcamel-loom%2Fblob%2Fmain%2Fcamel-loom.zip%3Fraw%3Dtrue__%3B!!GqivPVa7Brio!OIOtHwMmNn1nYzz2ZlJrkSkR4sFps2Cipv76cYNJLHPTyaeeVGeOsvjb6VFYhu3_rQ%24&data=04%7C01%7Cjonathan.henson%40hcl.com%7Cb69105ebd9764a9010a208d92ffb29fe%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637593578056724854%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=CpJGQqLfVLvbtqAPvaPZmIELeb2wajxWxi7k1qgDa%2Fo%3D&reserved=0
>
> And just the log file can be found here:
>
> https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2F%2Fgithub.com%2FJonDGH%2Fcamel-loom%2Fblob%2Fmain%2Fhs_err_pid83320.log__%3B!!GqivPVa7Brio!OIOtHwMmNn1nYzz2ZlJrkSkR4sFps2Cipv76cYNJLHPTyaeeVGeOsvjb6VE2Txq5-g%24&data=04%7C01%7Cjonathan.henson%40hcl.com%7Cb69105ebd9764a9010a208d92ffb29fe%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637593578056724854%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=jA35zpkX5KywkKywXM1nBOKIuwoQTzu1rR9DrrUF4B8%3D&reserved=0
>
Jon - do you have instructions on how to run this?

-Alan
::DISCLAIMER::
________________________________
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects.
________________________________


More information about the loom-dev mailing list