-
Notifications
You must be signed in to change notification settings - Fork 176
Description
HttpEventCollectorSender.java does not use the timeout values that are configured.
The Appender may now be configured to make use of timeout values for connection, read and write. Unfortunately, I cannot see where these values are being used in the code to configure the OkHttpClient and changing these values does not appear to make any difference to operation of the client.
I would have expected to see something like the OkHttpClient.Builder connectionTimeout, readTimeout and writeTimeout methods being called to do the config. (https://square.github.io/okhttp/3.x/okhttp/)
Version of this project you're using: 1.9.0
Platform version: Windows 10
Framework version: Adopt OpenJDK 8.0.292.10
Splunk version: 8.0.5
Running test application locally sending data to a Splunk collector.
Similarly to #162, we can end up with a large amount of memory being used if these cannot be tuned.
Example:
- Configure the SplunkHttp appender url = https://localhost:8088 (does not exist)
- Have the test application log a number of messages, e.g. 10000.
- Using something like VisualVM heap dumps you can see that there are a lot of live objects for HttpEventCollectorEventInfo.
- Without the ability to tune to cope with the Splunk collector not being available, there is a potential to end up with an OOM problem.