Springboot Webflux accesslog: What are the two numbers at the end please? - spring-webflux

Small question regarding how to interpret a SpringBoot Webflux app access log please.
Currently, in my logs, more precisely access logs, I can see:
2021-07-31 13:46:19.913 INFO [service,,] 10 --- [or-http-epoll-1] reactor.netty.http.server.AccessLog : ip - - [31/Jul/2021:13:46:19 +0000] "GET /health HTTP/1.1" 200 3349 6
2021-07-31 13:47:18.531 INFO [service,,] 10 --- [or-http-epoll-2] reactor.netty.http.server.AccessLog : ip - - [31/Jul/2021:13:47:18 +0000] "GET /health/liveness HTTP/2.0" 200 3312 8
2021-07-31 13:47:33.347 INFO [service,,] 10 --- [or-http-epoll-2] reactor.netty.http.server.AccessLog : ip - - [31/Jul/2021:13:47:33 +0000] "GET /health HTTP/1.1" 200 3349 11
I understand the 200 is probably my http response, I return http 200.
But I am having a hard time understanding what are the last two numbers please.
3349 6
3312 8
3349 11
Any help?
Thank you

It does depend on log format definition, but it looks like the larger number is response size in bytes and the smaller is processing time of the request in ms.
I'll look at documentation to see where I'd expect to find the log format definition for a spring webflux app. I'd expect the format to be defined in a similar way to httpd access logs ( documentation for those is at https://httpd.apache.org/docs/2.4/logs.html)

Related

Written only dash in apache access log

A normal log looks like this:
111.111.111.111 222.222.222.222 - - [06/Jun/2017:02:19:00 +0900] "GET /monitor/l7check.nhn HTTP/1.1" 200 4 1222 "-" "-"
but some log looks like this:
111.111.111.111 333.333.333.333 - - [06/Jun/2017:02:18:58 +0900] "-" 408 - 13 "-" "-"
I can't understand the meaning of this log.
Why does it have only a 'dash' instead of a 'get URL'?
Is it possible to log to a URL without requesting a URL?
https://www.rfc-editor.org/rfc/rfc7231#section-6.5.7
6.5.7. 408 Request Timeout
The 408 (Request Timeout) status code indicates that the server did not receive a complete request message within the time that it was prepared to wait. A server SHOULD send the "close" connection option (Section 6.1 of [RFC7230]) in the response, since 408 implies that the server has decided to close the connection rather than continue waiting. If the client has an outstanding request in transit, the client MAY repeat that request on a new connection.
So, the client connected, but did not send any HTTP request. The server waited, and eventually closed the connection.

Edx Developer Stack not showing anything after hitting to local host. Css for the page is not coming in lms

I have a strange problem in edx devstack. When I am running devstack after paver command on my localhost then I am not able to get anything on the screen once the browser screen come to loading state.
Then after a lot of time nothing is being displayed on the screen and I can see some warnings in the logs which I have attached with this que.
I have commented that code which are causing the warning message.
But after commenting warnings have gone but nothing has changed the browser again goes in loading mode and nothing happens on the screen after hitting to localhost URL,it just go in to the loading mode and nothing is being displayed.
I have also tried to run the openedx in firefox but in fore fox the links and everythings are coming but they are coming with out any style and design for the edx. I have attached a screenshot for the same.
Please help me with this issue as I am not able to figure out what to do.
P.S. I have re-installed the whole stack using virtual box, but nothing has worked for me.
Thank you very much in advance.
Development server is running at http://0.0.0.0:8000/
Quit the server with CONTROL-C.
2015-03-29 05:16:58,318 WARNING 2092 [edxmako.shortcuts] shortcuts.py:56 - Cannot find corresponding link for name: JOBS
2015-03-29 05:16:58,319 WARNING 2092 [edxmako.shortcuts] shortcuts.py:56 - Cannot find corresponding link for name: JOBS
2015-03-29 05:16:58,321 WARNING 2092 [edxmako.shortcuts] shortcuts.py:56 - Cannot find corresponding link for name: NEWS
2015-03-29 05:16:58,323 WARNING 2092 [edxmako.shortcuts] shortcuts.py:56 - Cannot find corresponding link for name: NEWS
2015-03-29 05:16:59,991 INFO 2092 [django_comment_client.utils] utils.py:344 - 3 queries run, total 0.003 seconds
[29/Mar/2015 05:16:59] "GET / HTTP/1.1" 200 30740
2015-03-29 05:17:11,453 INFO 2092 [django_comment_client.utils] utils.py:344 - 1 queries run, total 0.001 seconds
[29/Mar/2015 05:17:11] "GET / HTTP/1.1" 200 30700
2015-03-29 05:17:11,458 INFO 2092 [django_comment_client.utils] utils.py:344 - 1 queries run, total 0.0 seconds
[29/Mar/2015 05:17:11] "GET / HTTP/1.1" 200 30700
[29/Mar/2015 05:18:31] "GET /static/css/vendor/font-awesome.css HTTP/1.1" 200 28835
[29/Mar/2015 05:18:31] "GET /static/css/vendor/jquery.qtip.min.css HTTP/1.1" 200 1677
2015-03-29 05:18:31,573 INFO 2092 [django_comment_client.utils] utils.py:344 - 1 queries run, total 0.0 seconds
CONTINUE....
Hi Guys after I posted on google group I finally got the answer. I feel like I should post this answer on stackoverflow so it is convenient for people who got stuck in their development.
1) From the screen shot it seems it is a permission issue. Give correct permission for edx-platform and themes folder if you are using any. Then try restarting the LMS and CMS and reload the page.
sudo chown -R edxapp:edxapp /edx/app/edxapp/edx-platform
sudo chown -R edxapp:edxapp /edx/app/edxapp/themes.
sudo /edx/bin/supervisorctl restart edxapp:
2) If you are able to load CMS page and LMS showing blank, may be mongodb is not running.
#mongo , if it shows some error check if swap size is full
# free -m
If swap is full, create new swap file, follow the instruction in the below link blindly.
http://www.cyberciti.biz/faq/linux-add-a-swap-file-howto/
Then try restarting mongodb, you can try restarting the system once.

What does the access log format signifies

What does the following format signifies?
"GET /shipments HTTP/1.1" 200 1339
GET is the type of request
/shipments is the url hit
200 is the status code
What are HTTP/1.1 and 1339
In your example, HTTP/1.1 is the HTTP version the client used to make its request, and 1339 the length of the response in bytes.
Check out the documentation for the mod_log_config for a list of all the variables that can be used in log files.

RTMPT connection closes with Red5 after some time

I am using Red5 version 1.0.0(final release) for Java 6 on Windows XP sp3.I am using the installer version downloaded from https://code.google.com/p/red5/. I have a project wherein I am performing live webcam chats between the users. I am using RTMPT (HTTP over RTMP)protocol for that.So I have set up my Red5 server behind the Apache web server.The problem is that everything goes on well for 45-50 seconds and suddenly the RTMPT connection gets closed.I am not using a dedicated rtmpt server,i.e. I have not uncommented the rtmpt bean in the conf files.Rather I have added entries of servlet mappings(for idle,fcs,open etc) in the web.xml of my application. RTMPT is listening on 5080 port.I have tested this with previous versions of Red5 also but the problem is the same.The RTMPT connection closes after some time(within a minute).I had gone through logs but there was found nothing regarding this.Also there was no connection closure due to the inactivity period.Has it something to do with Apache? I am not sure whether server is closing the connection (though I cant find any logs about closing connection) or client closes it.Tried it out with 0.9.0 and 0.9.1 too but nothing to avail.I have heard that there were issues using RTMPT with Red5 on Mac but I am on Windows.Any pointers to this problem? Any help is appreciated.Also here are the error logs that I get on my Apache web server -
[error] (OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted. : proxy: HTTP: attempt to connect to red5serverip:5080 (*) failed.
The same log is repeated for four times.
Here are some access logs from Apache too -
"POST /send/IDTK7NOG2PXGB/803 HTTP/1.1" 200 1
"POST /send/IDTK7NOG2PXGB/804 HTTP/1.1" 503 323
"POST /send/YXF4WTFMN8TCM/1391 HTTP/1.1" 200 8285
"POST /send/YXF4WTFMN8TCM/1392 HTTP/1.1" 200 1
"POST /send/YXF4WTFMN8TCM/1393 HTTP/1.1" 200 54
"POST /send/YXF4WTFMN8TCM/1394 HTTP/1.1" 200 1
"POST /send/YXF4WTFMN8TCM/1395 HTTP/1.1" 503 323
"POST /close/IDTK7NOG2PXGB/805 HTTP/1.1" 503 323
"POST /close/YXF4WTFMN8TCM/1396 HTTP/1.1" 503 323
Thanx!
Probably you are running out of tcp ports. A tcp connection will remain 4 minutes in the TIME_WAIT state by default, even if it is already closed. When your RTMPT stream uses 5 connections each second, your system will need at least 5*60*4=1200 ports for each connected user.
Often the firewall is limiting the amount of ports available. You can also decrease the keep-alive time of a tcp socket. If you google around with your apache error message you will find enough info to sort this out.
Your red5 server may be crashed. This occurs when your RAM usage is getting over. In that case you need to manually start red5 again. If this solved your problem, you need to upgrade your RAM. I am using about 8GB RAM after facing this problem several times. Because red5 was written using JAVA, it lacks memory. FFMPEG is good to use in a low memory. But I don't know how to provide chat using ffmpeg, exactly.
The 503 means that the service did not respond; if you are forwarding to red5 via apache, then this means there is a problem there. I would suggest not using the stand alone rtmpt bean; instead use only the servlet and remove apache from the mix to debug the issue.

Publishing Mercurial Respository on apache problem

I have a repository in here http://repos.joomlaguruteam.com/
I can browse it but I can clone it.
Every time I clone it I have this error
hg clone http://repos.joomlaguruteam.com/hello
destination directory: hello
requesting all changes
abort: HTTP Error 404: Not Found
and the access log have that
115.5.95.59 - - [10/Feb/2011:04:20:33 -0600] "GET /hello?pairs=0000000000000000000000000000000000000000-0000000000000000000000000000000000000000&cmd=between HTTP/1.1" 200 1 "-" "mercurial/proto-1.0"
115.5.95.59 - - [10/Feb/2011:04:20:34 -0600] "GET /hello?cmd=heads HTTP/1.1" 200 41 "-" "mercurial/proto-1.0"
115.5.95.59 - - [10/Feb/2011:04:20:34 -0600] "GET /hello?cmd=changegroup&roots=0000000000000000000000000000000000000000 HTTP/1.1" 404 597 "-" "mercurial/proto-1.0"
What is the problem.
I really hope somebody can help me with that.
Thanks,
Yuan
I could clone this by using uncompressed transfer.
If you are using TortoiseHg, then check the box Use uncompressed transfer
If you are using command-line, then use --uncompressed flag
hg clone --uncompressed http://repos.joomlaguruteam.com/hello