New post

Find

Question
· Jan 15

Where and How can i see the Stream that contains the response back to the client of a CSP application

Hey, So the title pretty much describes the question:
Where and How can i see the Stream that contains the response back to the client of a CSP application.

When the request is being processed and finished we return a response to the client - We do that by writing the data to a stream and that stream is sent back to the client.
I wanted to know how i can access the point right before that Data is actually written to the client back (meaning the place where the response is actually being send back, the last point of contact).
And was not able to find about it in the DOCS so would love to get a reference to it if you know where.

9 Comments
Discussion (9)2
Log in or sign up to continue
Article
· Jan 15 1m read

Effacer les classes supprimées après l'importation

Lorsque vous déployez du code à partir d'un dépôt, la suppression de classe (fichier) peut ne pas être reflétée par votre système CI/CD.
Voici une simple ligne de commande pour supprimer automatiquement toutes les classes d'un package spécifié qui n'ont pas été importées. Elle peut être facilement ajustée pour une variété de tâches annexes :

set packages = "USER.*,MyCustomPackage.*"
set dir = "C:\InterSystems\src\"
set sc = $SYSTEM.OBJ.LoadDir(dir,"ck", .err, 1, .loaded)
set sc = $SYSTEM.OBJ.Delete(packages _ ",'" _ $LTS($LI($LFS(loaded_",",".cls,"), 1, *-1), ",'"),, .err2)

La première commande compile les classes et renvoie également une liste des classes chargées. La deuxième commande supprime toutes les classes des packages spécifiés, à l'exception des classes chargées juste avant.

Discussion (0)1
Log in or sign up to continue
Article
· Jan 14 2m read

messages.log に出力される SuperServer failed to start slave server のエラーメッセージについて

これは InterSystems FAQ サイトの記事です。
 

09/04/24-14:37:47:260 (2575554) 2 [Utility.Event] ISCLOG: SuperServer Super Server job slave failure ns=%SYS rtn=%SYS.SERVER
09/04/24-14:37:47:260 (2575554) 2 [Utility.Event] SuperServer failed to start slave server

メッセージログ(cconsole.log/messages.log)の上記のようなログは、スーパーサーバ/SuperServer(既定:1972ポート)に対して外部からリクエストがあったが、リクエストに対応する子プロセスの起動に失敗した場合に記録されます。

スーパーサーバへの新規接続に対してスーパーサーバがJOBコマンド(タイムアウトあり)を実行したが、タイムアウト時間内にJOBコマンドが完了しなかったケースなどが考えられます。


通常こちらは 、システムの負荷が非常に高くJOBコマンドによる子プロセスの生成に時間を要してしまったような、OS レベルの問題である可能性が高いです。

運用に支障がないようであれば、そのような状況は一時的であったと考えられます。

子プロセス生成失敗の、さらに詳細な原因は、メモリ上の SYSLOG に残っている可能性があります。


以下の手順で %SYS 上で SYSLOG を実行し、ログを確認することが可能です。

%SYS>do ^SYSLOG
Device: C:\temp\a.log        <-- ログファイルフルパス

Parameters? "WNS" =>         <-- リターン

Show detail? No => Y


SYSLOGのログの内容については、SYSLOGログおよびメッセージログ (cconsole.log/messages.log) を用意して頂き、弊社サポートセンターまでお気軽にお問い合わせください。


もし、このようなシステム高負荷が継続して発生し、このサーバに接続しているアプリケーションにも影響がある場合、Jobサーバを構成することであらかじめJOBコマンド用の待機プロセスを用意して、JOBコマンドの負荷を減らすことでエラーを抑制できる可能性があります。

JOB サーバについて
JobServers
[システム管理] > [構成] > [追加設定] > [開始] にある [JobServers] 

Discussion (0)0
Log in or sign up to continue
Article
· Jan 14 1m read

Connecting IRIS to SQL Server using ODBC connection

In this tutorial, I will discuss how can you connect your IRIS data platform to sql server db  .

 

Prereq: 

Step 1: Run ODBC data sources  

Step 2: Go to System DSN tab and click add:

 

Step 3: Select "ODBC Driver for SQL Server" and click finish

Step 4: Then fill in the server details:

 

Step 5: 

 

 

 

Step 6: Then click next

 

Step 7: Then click finish

 

You can verify the connection by this window

 

 

Now open IRIS management portal:

Go to: System administration -> Configuration -> Connectivity -> SQL Gateway Connections

Click create new connection

Step 8:  Fill in the details: and test the connection

 

Note if you cant see the DSN: Make sure you selected the correct driver in step 3, and at System DSN level. 

 

And now you have established the connection! 

2 Comments
Discussion (2)2
Log in or sign up to continue
Article
· Jan 14 2m read

第七十三章 管理设备和助记词空间 - 设备的解释级别

第七十三章 管理设备和助记词空间 - 设备的解释级别

^%ISOPEN 命令一起使用的设备标识符最多要经过三个级别的解释。因此,如果在 ^%ISDevice: 提示符处输入助记词 47,则使用的最终设备 ID 可能会有所不同。下面介绍了这三个级别。

级别 1:%IS 实用工具级别

如果使用 ^%IS 实用程序选择设备,则使用第一级。^%IS 全局中的助记词可以与设备编号相关联。然后,^%IS 实用程序向该设备编号发出 OPEN 命令。

级别 2:OPEN 命令级别

OPEN 命令中,IRIS 会检查此数字是否存在于 Device panel 表的 Alias 列中。如果是这样,它会将其转换为该设备的实际设备号或名称。

Discussion (0)1
Log in or sign up to continue