You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m an RPC provider setting up a full node using Docker, but I’ve been experiencing an issue where the http port stops responding, eventually timing out. I reached out on Discord but haven’t received any help. Could you provide best practices for configuring the node for optimal performance? Any recommendations would be greatly appreciated.
docker-compose.yml
version: '3.8'
services:
java-tron:
image: tronprotocol/java-tron
container_name: java-tron
restart: unless-stopped
ports:
- "8535:8535" # Json RPC Port
- "8090:8090" # API Port
- "50051:50051" # GRPC Port
- "18888:18888" # P2P Port
volumes:
- ./config:/java-tron/conf # Configuration files
- ./data:/java-tron/data # Blockchain data
- ./logs:/java-tron/logs # log files
environment:
- JAVA_OPTS=-Xmx20g -Xms20g
command: [
"-c", "/java-tron/conf/config.conf",
"-d", "/java-tron/data",
"-w"
]
I followed the recommendation from this issue as well as increasing the -JAVA_OPTS from Xmx10g -Xms10g to Xmx20g -Xms20g which has improved the timeout
@breezytm What is your use case? For example, what will be the expected request frequency for RPC requests? Additionally, you need to ensure that the JAVA_OPTS configuration takes effect, as it is managed by Docker's resource controls. You can use docker stats to monitor basic metrics. If you expect a high QPS (queries per second), you may refer to this similar issue for guidance.
Hello,
I’m an RPC provider setting up a full node using Docker, but I’ve been experiencing an issue where the http port stops responding, eventually timing out. I reached out on Discord but haven’t received any help. Could you provide best practices for configuring the node for optimal performance? Any recommendations would be greatly appreciated.
docker-compose.yml
I followed the recommendation from this issue as well as increasing the
-JAVA_OPTS
fromXmx10g -Xms10g
toXmx20g -Xms20g
which has improved the timeoutThe text was updated successfully, but these errors were encountered: