High CPU usage (100%) when sending images with OpenAI plugin v0.0.16+ #209

Closed
opened 2026-02-16 10:18:27 -05:00 by yindo · 1 comment
Owner

Originally created by @sakuranaga on GitHub (Apr 19, 2025).

Originally assigned to: @Yeuoly on GitHub.

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues Dify issues & Dify Official Plugins, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.2.0

Plugin version

0.0.19

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Description
After upgrading the OpenAI plugin to version 0.0.16 or above, sending an image causes the Gunicorn worker process to spike to 100% CPU usage and the request fails to complete. This issue does not occur with version 0.0.15.

Steps to Reproduce

Build and run the service in Docker:

bash
docker compose up -d
Use the plugin to send any image payload to the API endpoint.

Monitor CPU usage via top or similar tool.

Expected Behavior
CPU usage should remain within normal bounds (e.g. below 50%) and the image request should be processed successfully, as observed in v0.0.15.

Actual Behavior

Gunicorn worker CPU usage jumps to 100%.

System load average increases sharply.

The request hangs or fails due to CPU saturation.

Environment

difify version: 1.2.0

OpenAI plugin version: 0.0.16 (and above)

Server OS: Ubuntu 24.04.2 LTS

Docker version: 28.1.1, build 4eba377

Deployment: Docker Compose

Additional Notes
Downgrading the plugin to v0.0.15 immediately resolves the issue, confirming a regression in v0.0.16.

✔️ Error log

No response

Originally created by @sakuranaga on GitHub (Apr 19, 2025). Originally assigned to: @Yeuoly on GitHub. ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [Dify issues](https://github.com/langgenius/dify/issues) & [Dify Official Plugins](https://github.com/langgenius/dify-official-plugins/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.2.0 ### Plugin version 0.0.19 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Description After upgrading the OpenAI plugin to version 0.0.16 or above, sending an image causes the Gunicorn worker process to spike to 100% CPU usage and the request fails to complete. This issue does not occur with version 0.0.15. Steps to Reproduce Build and run the service in Docker: bash docker compose up -d Use the plugin to send any image payload to the API endpoint. Monitor CPU usage via top or similar tool. Expected Behavior CPU usage should remain within normal bounds (e.g. below 50%) and the image request should be processed successfully, as observed in v0.0.15. Actual Behavior Gunicorn worker CPU usage jumps to 100%. System load average increases sharply. The request hangs or fails due to CPU saturation. Environment difify version: 1.2.0 OpenAI plugin version: 0.0.16 (and above) Server OS: Ubuntu 24.04.2 LTS Docker version: 28.1.1, build 4eba377 Deployment: Docker Compose Additional Notes Downgrading the plugin to v0.0.15 immediately resolves the issue, confirming a regression in v0.0.16. ### ✔️ Error log _No response_
yindo added the bug label 2026-02-16 10:18:27 -05:00
yindo closed this issue 2026-02-16 10:18:27 -05:00
Author
Owner

@kurokobo commented on GitHub (Apr 19, 2025):

Related to: https://github.com/langgenius/dify/issues/17799

Your problem should be partly resolved when the next release of Dify comes out, the next release of the Plugin SDK is released, and the OpenAI plugin starts using the new Plugin SDK.

@kurokobo commented on GitHub (Apr 19, 2025): Related to: https://github.com/langgenius/dify/issues/17799 Your problem should be partly resolved when the next release of Dify comes out, the next release of the Plugin SDK is released, and the OpenAI plugin starts using the new Plugin SDK.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#209