当前位置:网站首页>mod_ WSGI + pymssql path SQL server seat
mod_ WSGI + pymssql path SQL server seat
2022-07-06 19:50:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm the king of the whole stack .
by pymssql access SQL Server moment , directly python Implementation without problems . by mod_wsgi and Apache When deployed . All requests are found hang Then query the database .
adopt google Found the answer , thank google, Please refer to :https://code.google.com/p/modwsgi/wiki/ApplicationIssues#Python_Simplified_GIL_State_API
Briefly ,mod_wsgi For each virtual host and app mount point Create a sub interpreter.python There is a famous GIL, Through C extension Visit GIL State when , There is only the first sub interpreter To work properly , Suppose you use the possible sub interpreter May cause deadlock or crash, because pymssql It's a C extension So there will be this problem , The solution is . Add configuration items :
WSGIApplicationGroup %{GLOBAL}Force this app Use the first one sub interpreter, bring GIL Normal work . After finishing ,mod_wsgi everything ok.
Copyright notice : This article is an original blog article , Blog , Without consent , Shall not be reproduced .
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/117139.html Link to the original text :https://javaforall.cn
边栏推荐
- 力扣101题:对称二叉树
- Unbalance balance (dynamic programming, DP)
- PowerPivot——DAX(初识)
- JDBC details
- Method keywords deprecated, externalprocname, final, forcegenerate
- Standardized QCI characteristics
- A5000 vGPU显示模式切换
- Zero foundation entry polardb-x: build a highly available system and link the big data screen
- String长度限制?
- VMware virtual machine cannot open the kernel device "\.\global\vmx86"
猜你喜欢

Pay attention to the partners on the recruitment website of fishing! The monitoring system may have set you as "high risk of leaving"

Leetcode 30. Concatenate substrings of all words

激进技术派 vs 项目保守派的微服务架构之争

Spark foundation -scala

Example of applying fonts to flutter
Classic 100 questions of algorithm interview, the latest career planning of Android programmers

LeetCode_双指针_中等_61. 旋转链表

In simple terms, interview surprise Edition

新一代垃圾回收器—ZGC

腾讯T3手把手教你,真的太香了
随机推荐
121. The best time to buy and sell stocks
A5000 vGPU显示模式切换
Introduction to enterprise lean management system
小微企业难做账?智能代账小工具快用起来
学习探索-函数防抖
青龙面板白屏一键修复
Vscode debug run fluent message: there is no extension for debugging yaml. Should we find yaml extensions in the market?
Information System Project Manager - Chapter VIII project quality management
The slave i/o thread stops because master and slave have equal MySQL serv
Swiftui game source code Encyclopedia of Snake game based on geometryreader and preference
Dom 操作
Leetcode 30. Concatenate substrings of all words
凤凰架构3——事务处理
爬虫(14) - Scrapy-Redis分布式爬虫(1) | 详解
DaGAN论文解读
腾讯T3大牛手把手教你,大厂内部资料
beegfs高可用模式探讨
【基础架构】Flink/Flink-CDC的部署和配置(MySQL / ES)
Low CPU load and high loadavg processing method
Simple application of VBA script in Excel