Re: Tomcat 8.5.16 cuts end of body after 10485761 bytes
Hi, "No olvides, no traiciones, lo que llevas bien dentro de ti. No olvides, no traiciones, lo que siempre te ha hecho vivir." On Tue, Aug 29, 2017 at 11:42 AM, Felix Schumacher < felix.schumac...@internetallee.de> wrote: > Am 29.08.2017 um 04:44 schrieb Simon De Uvarow: > >> Hi, I have to respond a big json file: >> >> return Response.status(Status.OK).entity(new >> SimpleDataMessageResponse("TASK_FINISH", >> str)).build(); >> >> The tomcat logs correctly the size in the access log file: >> >> 127.0.0.1 - - [29/Aug/2017:02:26:07 +] "GET /./interactiveTask/ >> 1076dde0-b199-4043-9047-e897050eb7fa HTTP/1.1" 200 *12815716 *748 . >> >> *But the browser receives only 10485761 bytes (10 MB).* >> >> I tested with Chrome, Firefox and finally with JMeter, and it's the same >> in >> all cases: >> The following is the result of the JMeter: >> >> Size in bytes: *12815830* >> Sent bytes:564 >> Headers size in bytes: 114 >> Body size in bytes: *12815716<- but if I run the JMeter script , copy >> the response and check the size, it's **10485761 bytes, not 12815716 >> bytes* >> Data type ("text"|"bin"|""): text >> Response code: 200 >> Response message: >> >> Response headers: >> HTTP/1.1 200 >> Content-Type: application/json >> Transfer-Encoding: chunked >> Date: Tue, 29 Aug 2017 02:26:07 GMT >> >> GET http://... /interactiveTask/1076dde0-b199-4043-9047-e897050eb7fa >> >> Request Headers: >> Connection: keep-alive >> Referer: - >> Accept-Language: es-ES,es;q=0.8,en;q=0.6,gl;q=0.4,en-US;q=0.2 >> Accept-Encoding: gzip, deflate, br >> Accept: application/json, text/plain, */* >> User-Agent: >> Host: localhost:8080 >> >> >> >> Any idea of what could be happening ? >> Is there any max size to configure and fix this? >> > > Well, JMeter has a default max size for storing body contents. It is 10 MB > and can be configured with a property in bin/jmeter.properties: > > > # Max size of bytes stored in memory per SampleResult > # Ensure you don't exceed max capacity of a Java Array and remember. > # that the higher it is, the higher JMeter will consume heap > # Defaults to 10MB > #httpsampler.max_bytes_to_store_per_request=10485760 > > Do you have any other signs for the truncation apart from JMeter? How did > you measure the size in the browsers? > > Regards, > Felix > > >> thanks ! >> >> >> "No olvides, no traiciones, lo que llevas bien dentro de ti. No olvides, >> no >> traiciones, lo que siempre te ha hecho vivir." >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > Ok, thanks, didn't know that JMeter configuration. I also update the Jersey version to 2.25.1 (I had 2.23.1) [image: Inline image 1] Now I see whole content in JMeter. So, looks like the clients (browsers) are dropping the content. So, is not a question for this mail list. Thanks for the help !
Re: Tomcat 8.5.16 cuts end of body after 10485761 bytes
Am 29.08.2017 um 04:44 schrieb Simon De Uvarow: Hi, I have to respond a big json file: return Response.status(Status.OK).entity(new SimpleDataMessageResponse("TASK_FINISH", str)).build(); The tomcat logs correctly the size in the access log file: 127.0.0.1 - - [29/Aug/2017:02:26:07 +] "GET /./interactiveTask/ 1076dde0-b199-4043-9047-e897050eb7fa HTTP/1.1" 200 *12815716 *748 . *But the browser receives only 10485761 bytes (10 MB).* I tested with Chrome, Firefox and finally with JMeter, and it's the same in all cases: The following is the result of the JMeter: Size in bytes: *12815830* Sent bytes:564 Headers size in bytes: 114 Body size in bytes: *12815716<- but if I run the JMeter script , copy the response and check the size, it's **10485761 bytes, not 12815716 bytes* Data type ("text"|"bin"|""): text Response code: 200 Response message: Response headers: HTTP/1.1 200 Content-Type: application/json Transfer-Encoding: chunked Date: Tue, 29 Aug 2017 02:26:07 GMT GET http://... /interactiveTask/1076dde0-b199-4043-9047-e897050eb7fa Request Headers: Connection: keep-alive Referer: - Accept-Language: es-ES,es;q=0.8,en;q=0.6,gl;q=0.4,en-US;q=0.2 Accept-Encoding: gzip, deflate, br Accept: application/json, text/plain, */* User-Agent: Host: localhost:8080 Any idea of what could be happening ? Is there any max size to configure and fix this? Well, JMeter has a default max size for storing body contents. It is 10 MB and can be configured with a property in bin/jmeter.properties: # Max size of bytes stored in memory per SampleResult # Ensure you don't exceed max capacity of a Java Array and remember. # that the higher it is, the higher JMeter will consume heap # Defaults to 10MB #httpsampler.max_bytes_to_store_per_request=10485760 Do you have any other signs for the truncation apart from JMeter? How did you measure the size in the browsers? Regards, Felix thanks ! "No olvides, no traiciones, lo que llevas bien dentro de ti. No olvides, no traiciones, lo que siempre te ha hecho vivir." - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat 8.5.16 cuts end of body after 10485761 bytes
Hi, I have to respond a big json file: return Response.status(Status.OK).entity(new SimpleDataMessageResponse("TASK_FINISH", str)).build(); The tomcat logs correctly the size in the access log file: 127.0.0.1 - - [29/Aug/2017:02:26:07 +] "GET /./interactiveTask/ 1076dde0-b199-4043-9047-e897050eb7fa HTTP/1.1" 200 *12815716 *748 . *But the browser receives only 10485761 bytes (10 MB).* I tested with Chrome, Firefox and finally with JMeter, and it's the same in all cases: The following is the result of the JMeter: Size in bytes: *12815830* Sent bytes:564 Headers size in bytes: 114 Body size in bytes: *12815716<- but if I run the JMeter script , copy the response and check the size, it's **10485761 bytes, not 12815716 bytes* Data type ("text"|"bin"|""): text Response code: 200 Response message: Response headers: HTTP/1.1 200 Content-Type: application/json Transfer-Encoding: chunked Date: Tue, 29 Aug 2017 02:26:07 GMT GET http://... /interactiveTask/1076dde0-b199-4043-9047-e897050eb7fa Request Headers: Connection: keep-alive Referer: - Accept-Language: es-ES,es;q=0.8,en;q=0.6,gl;q=0.4,en-US;q=0.2 Accept-Encoding: gzip, deflate, br Accept: application/json, text/plain, */* User-Agent: Host: localhost:8080 Any idea of what could be happening ? Is there any max size to configure and fix this? thanks ! "No olvides, no traiciones, lo que llevas bien dentro de ti. No olvides, no traiciones, lo que siempre te ha hecho vivir."