An open API service indexing awesome lists of open source software.

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.

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.