Skip to main content
2 votes
2 answers
213 views

I am migrating a Spring Boot 3.x application to use Java Virtual Threads. I have replaced my standard async executor with a virtual thread executor: @Bean public Executor taskExecutor() { return ...
Max's user avatar
  • 1
3 votes
2 answers
455 views

public class Test { private static final Object lock = new Object(); public static void main(String[] args) { try (var executor = Executors.newVirtualThreadPerTaskExecutor()) { ...
Strayer_xx's user avatar
1 vote
0 answers
134 views

env jdk:openjdk24 tomcat:10.1.40 virtual thread enabled:true problem: the carrier thread pinned jstack as below detail jstack info detail jcmd vt info "ForkJoinPool-1-worker-1" #50 [...
walker_fish's user avatar
3 votes
1 answer
492 views

In a service I have 2 executorServices for different tasks: get user transactions (50-100 threads, queue 300) get user family (10-50 threads, queue 100) It was easy to monitoring threads and adding ...
Olga grts's user avatar
1 vote
3 answers
515 views

There is a typical task: consume data from Kafka (or REST/gRPC), process it, and persist it in the DB. The database has always been our weak point. We usually have hundreds or thousands of messages to ...
Alexander Ishmuradov's user avatar
2 votes
0 answers
242 views

I'm working with Java's virtual threads and trying to fully understand their memory management implications, specifically regarding their stacks. My current understanding is that a virtual thread's ...
Jaromir Hamala's user avatar
4 votes
1 answer
577 views

I'm writing an application that requires me to dynamically spawn tasks based on user input. There can be hundreds of such tasks, and they will have different combinations of individual task timeouts, ...
Arnav Borborah's user avatar
0 votes
1 answer
247 views

Environment: Java 21+ (Virtual Threads) Problem Description When using virtual threads, calling Thread.sleep() before LockSupport.parkNanos() causes subsequent parking operations to return immediately ...
gg22g2's user avatar
  • 11
4 votes
2 answers
589 views

I have a spring boot project version 3.5 with virtual threads (spring.virtual.threads.enabled=true) and @EnableAsyncConfig enabled. I have a simple RestController which is calling the service layer ...
rakesh's user avatar
  • 466
0 votes
1 answer
179 views

I ran into an interesting problem during performance testing of an application running on the spring boot. Basically the method in question looks like this: public void method(Request request) { ...
SPIRiT_1984's user avatar
  • 2,825
2 votes
1 answer
458 views

How can I leverage virtual threads to execute I/O-bound Quartz jobs within a Quarkus microservice, handling programmatic job triggering without cron-based scheduling? We are considering Quartz for our ...
LAP's user avatar
  • 101
2 votes
1 answer
712 views

We use our Spring Boot applications on dedicated tomcat servers, aka WAR deployment. I want to give virtual threads a try. So for my understanding, using Java 21, tomcat11 and the latest Spring Boot (...
Thomas Lang's user avatar
  • 1,535
2 votes
0 answers
145 views

I'm exploring the use of virtual threads (Java 21) in a Spring WebFlux application by using a custom Scheduler backed by a virtual thread executor via .subscribeOn(). However, I’ve noticed that while ...
Spring boot progammer's user avatar
1 vote
1 answer
454 views

We are currently working on a Spring Integration flow where each incoming message needs to trigger a call to an external HTTP service. The external call can take up to 20 seconds to complete, and the ...
Timo B.'s user avatar
  • 13
8 votes
2 answers
843 views

Our application heavily uses ThreadLocals where we read values from ServletRequest parameters and provide theses as a global context on Thread Level to other Services. Something like this: @Component @...
Andreas Radauer's user avatar

15 30 50 per page
1
2 3 4 5
10