当前位置:网站首页>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
边栏推荐
- Alibaba数据源Druid可视化监控配置
- Hudi vs Delta vs Iceberg
- 【云小课】EI第47课 MRS离线数据分析-通过Flink作业处理OBS数据
- DOM operation
- mod_wsgi + pymssql通路SQL Server座
- MySQL information schema learning (II) -- InnoDB table
- 【翻译】云原生观察能力微调查。普罗米修斯引领潮流,但要了解系统的健康状况仍有障碍...
- Example of applying fonts to flutter
- 转让malloc()该功能后,发生了什么事内核?附malloc()和free()实现源
- Cesium 两点之间的直线距离
猜你喜欢

Swiftui game source code Encyclopedia of Snake game based on geometryreader and preference

【翻译】Linkerd在欧洲和北美的采用率超过了Istio,2021年增长118%。

【计算情与思】扫地僧、打字员、信息恐慌与奥本海默

Microservice architecture debate between radical technologists vs Project conservatives

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

Mind map + source code + Notes + project, ByteDance + JD +360+ Netease interview question sorting

学习探索-无缝轮播图

In simple terms, interview surprise Edition

Standardized QCI characteristics
Classic 100 questions of algorithm interview, the latest career planning of Android programmers
随机推荐
Alibaba data source Druid visual monitoring configuration
腾讯字节等大厂面试真题汇总,网易架构师深入讲解Android开发
语音识别(ASR)论文优选:全球最大的中英混合开源数据TALCS: An Open-Source Mandarin-English Code-Switching Corpus and a Speech
2022年6月语音合成(TTS)和语音识别(ASR)论文月报
Standardized QCI characteristics
方法关键字Deprecated,ExternalProcName,Final,ForceGenerate
How to do smoke test
AsyncHandler
小微企业难做账?智能代账小工具快用起来
logstash高速入口
CF960G - Bandit Blues(第一类斯特林数+OGF)
Analysis of rainwater connection
学习打卡web
腾讯T3大牛手把手教你,大厂内部资料
LeetCode_ Double pointer_ Medium_ 61. rotating linked list
Phoenix Architecture 3 - transaction processing
Method keywords deprecated, externalprocname, final, forcegenerate
Simple application of VBA script in Excel
Leetcode 30. Concatenate substrings of all words
In simple terms, interview surprise Edition