Fix the limitations set by Warp
The threads number is limited by Warp ThreadPool. The ThreadPool is
migrated to Java's implementation.