当前位置:网站首页>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
边栏推荐
- 社招面试心得,2022最新Android高频精选面试题分享
- Finally, there is no need to change a line of code! Shardingsphere native driver comes out
- Example of shutter text component
- 从sparse.csc.csr_matrix生成邻接矩阵
- How to do smoke test
- Tensorflow2.0 自定义训练的方式求解函数系数
- Recursive implementation of department tree
- 部门树递归实现
- 手把手教你学会js的原型与原型链,猴子都能看懂的教程
- 利用 clip-path 绘制不规则的图形
猜你喜欢
PowerPivot——DAX(初识)
DaGAN论文解读
Introduction to enterprise lean management system
【翻译】云原生观察能力微调查。普罗米修斯引领潮流,但要了解系统的健康状况仍有障碍...
Interview assault 63: how to remove duplication in MySQL?
[calculating emotion and thought] floor sweeper, typist, information panic and Oppenheimer
Classic 100 questions of algorithm interview, the latest career planning of Android programmers
[translation] linkerd's adoption rate in Europe and North America exceeded istio, with an increase of 118% in 2021.
redisson bug分析
凤凰架构3——事务处理
随机推荐
121. 买卖股票的最佳时机
[translation] supply chain security project in toto moved to CNCF incubator
LeetCode_ Gray code_ Medium_ 89. Gray code
Spark foundation -scala
Classic 100 questions of algorithm interview, the latest career planning of Android programmers
Simple application of VBA script in Excel
利用 clip-path 绘制不规则的图形
信息系统项目管理师---第八章 项目质量管理
Mysql Information Schema 学习(二)--Innodb表
Chic Lang: attributeerror: partially initialized module 'CV2' has no attribute 'GAPI_ wip_ gst_ GStreamerPipe
Standardized QCI characteristics
Mysql Information Schema 學習(一)--通用錶
RT-Thread 组件 FinSH 使用时遇到的问题
Teach you to learn JS prototype and prototype chain hand in hand, a tutorial that monkeys can understand
Logstash expressway entrance
Swiftui game source code Encyclopedia of Snake game based on geometryreader and preference
Configuration and simple usage of the EXE backdoor generation tool quasar
Interview assault 63: how to remove duplication in MySQL?
mod_wsgi + pymssql通路SQL Server座
Vmware虚拟机无法打开内核设备“\\.\Global\vmx86“的解决方法