Questions tagged [vertxoptions]

Specifying options when creating a Vertx object When creating a Vertx object you can also specify options if the defaults aren’t right for you:

Vertx vertx = Vertx.vertx(new VertxOptions().setWorkerPoolSize(40));

The VertxOptions object has many settings and allows you to configure things like clustering, high availability, pool sizes and various other settings. The Javadoc describes all the settings in detail.

22 questions
0
votes
1 answer

Vert.x GET api returns 400 Bad Request for some traffic

We have a Vert.x application where we are hosting few HTTP GET and POST api's. While testing on production we are facing an issue where one GET api response to client is 400 - Bad Request. This api works most of the times but for few clients it is…
Kishore Tulsiani
  • 1,106
  • 13
  • 29
0
votes
1 answer

Vertx http server instance number does not improve throughput

I am using Vertx 3.8.0 to build a http server. The CPU can not be utilized (Only about 25% of CPU can be used) even when I set the instance of the verticle to number larger than 1. The instresting thing is the best performance I can get is when I…
PleaseLetMeGo
  • 125
  • 2
  • 7
0
votes
1 answer

How do I launch clients on different event loops?

I am creating a testing application that suppose to have many connections to a server. When I create a client from my Verticle it is always processing the connection and messages on the same tread. When I created my verticle I…
lfmunoz
  • 822
  • 1
  • 9
  • 16
0
votes
1 answer

How to write Vertx worker verticle - indefinite blocking operation?

Following class is my worker verticle in which i want to execute a blocking code on recieving a message from event bus on a channel named events-config. The objective is to generate and publish json messages indefinitely until i receive stop…
Mozhi
  • 757
  • 1
  • 11
  • 28
0
votes
1 answer

How to apply concurrent processing on worker verticles using vert.x

Vert.x docs mentioning this : By default worker verticle instance will only be executed by one thread at any one time (it is not concurrent). So that means that if I have Verticle with 20 instances e.g: …
rayman
  • 20,786
  • 45
  • 148
  • 246
0
votes
2 answers

Getting Concurrent TimeoutException in JUNIT with vertx

I am trying to run junit test cases using VertxUnitRunner.class. I have 35 test cases, each time getting concurrent exception for different test case. I am running these test cases in VM machine with jenkins. Does any one know a solution for…
0
votes
0 answers

Best practice to set VertxOptions in a class that extends AbstractVerticle

I'm learning by a mission-http-api-vertx coding my customizations on the scaffold generated by developers.redhat.com/launch using Eclipse Vert.x 3.4.2 . I think the proposed approach is quite a classic but I do not understand what is the best…
Franco Rondini
  • 10,841
  • 8
  • 51
  • 77
1
2