The issue requires addressing all three configuration layers - REST API file upload limits, wt.content.maxFileSize property, and Tomcat server configuration. Here’s the comprehensive solution:
1. REST API File Upload Limits:
The REST API respects multiple configuration boundaries. First, update wt.properties:
wt.content.maxFileSize=524288000
# 500MB in bytes
This controls Windchill’s content service upload limit. However, this alone won’t solve the problem.
2. Tomcat Server Configuration:
Edit WT_HOME/tomcat/conf/server.xml and modify the HTTP Connector:
<Connector port="8080"
maxPostSize="524288000"
maxSwallowSize="524288000"/>
Both attributes must be set. maxPostSize limits POST request size, maxSwallowSize prevents Tomcat from rejecting large payloads. Without these, Tomcat rejects uploads before Windchill processes them.
3. Additional Infrastructure Considerations:
Reverse Proxy (if applicable):
If using Apache, add to httpd.conf:
LimitRequestBody 524288000
For nginx:
client_max_body_size 500M;
Performance Optimization:
For 400MB files, implement these best practices:
- Use chunked transfer encoding in your API client
- Set appropriate timeout values (connection timeout: 300s, read timeout: 600s)
- Upload during off-peak hours for initial bulk imports
- Consider background processing: POST to create document object first, then upload content separately
- Monitor method server memory - large uploads consume heap space during processing
Restart Sequence:
- Stop Windchill method server
- Update wt.properties and server.xml
- Clear Tomcat work directory cache
- Start method server
- Verify with test upload
Validation:
Test incrementally: 150MB, 250MB, then 400MB files. Monitor WT_HOME/logs/MethodServer-*.log for any remaining constraints. If uploads still fail, check database storage configuration - some databases have BLOB size limits that may need adjustment.
For production deployment, document these settings in your change control system as they’ll need reapplication after Windchill upgrades.
This draft is based on general Windchill knowledge. It has not been verified against your specific version and environment. Practitioners: verify the steps and share your experience below.