https://github.com/sunng87/jdk-ssl-boot
Patched JDK SSL input buffer size.
https://github.com/sunng87/jdk-ssl-boot
Last synced: 9 months ago
JSON representation
Patched JDK SSL input buffer size.
- Host: GitHub
- URL: https://github.com/sunng87/jdk-ssl-boot
- Owner: sunng87
- Created: 2015-07-27T09:56:48.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-07-27T09:58:42.000Z (over 10 years ago)
- Last Synced: 2024-10-06T04:41:36.288Z (over 1 year ago)
- Language: Java
- Size: 133 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ssl-boot
Patched JDK internal class `sun.security.ssl.Record` in order to reduce default SSL input buffer.
This patch reduces default buffer size from 16K to 8K.
## Rational
Since JDK doesn't have a memory pool built-in, it allocates a fix-sized buffer for every TLS connection as input buffer. The default size of the buffer is 16KB, which leads to significant heap memory footprint when you have a large number of secure connections.
## Usage
Checkout this repository and find module for your JDK version.
Build the module with
```
mvn install
```
Find generated jar package in `target`. To use this patched version, you will need to prepend the package to **bootstrap classpath**:
```
-Xbootclasspath/p:ssl-boot--.jar
```
Then benefit.