Nueva publicación

Encontrar

Artículo
· 10 oct, 2023 Lectura de 6 min

IRISのライセンス使用量の推移を調査する方法

弊社FAQサイトや開発者コミュニティには、ライセンスに関する記事を数多く掲載しています。

こちらの記事では、上記記事でご紹介している様々な機能をTipsとして使い、実際にライセンス使用量の推移を調査する方法をご紹介します。

1.ライセンス使用状況をスポットで確認する方法(今現在の使用状況)

2.ある一定期間のライセンス使用状況を継続して監視する方法
 

1.ライセンス使用状況をスポットで確認する方法(今現在の使用状況)

現在のライセンス使用量は管理ポータルで確認できます。
[システムオペレーション] > [ライセンス使用量] 

 

※各項目の意味は以下の記事を参照してください。
管理ポータルのライセンス使用量のページに表示される値の意味
 

具体的にどのようなユーザがライセンスを消費しているのかは、「ユーザ毎の使用」で見られますが、こちらはローカルのサーバのインスタンスのみの情報となります。
リモート接続しているインスタンスへのユーザ毎の使用情報は、リモートのサーバ上のインスタンスで確認する必要があります。

また、現在のライセンス使用状況は ライセンスユーティリティ(%SYSTEM.License クラスのメソッド)を使用してコマンドでファイル出力することも可能です。

以下の記事の添付ファイルに、使用例を掲載しております。
使用中のライセンス情報を取得する方法
 

2.ある一定期間のライセンス使用状況を継続して監視する方法

ある一定期間ライセンスの使用状況を監視する方法として、履歴モニタを使用する方法があります。
こちらは、どの時間帯に最もライセンスが消費されるのかを調べる際に使用できます。
履歴モニタの使用方法は、ドキュメント と、パフォーマンス調査ガイド(P.14~)をご覧ください。

こちらの記事では、履歴モニタを使用して実際にライセンス情報を監視する方法とその計測結果(サンプル)をご案内します。

ライセンス使用状況(現在使用中のライセンス数:ローカル/リモート)は、アプリケーションモニタで提供されている %Monitor.System.HistorySys クラスを有効化することで情報収集できます。

こちらの設定をすると、既定で5分(900秒)ごとにライセンス使用状況を含むシステム使用情報を収集します。
データは永続クラスとして保存されるため、標準 SQL または永続オブジェクトアクセスを使用して利用できます。

SQLを使用する場合は、以下のようにして情報を確認することができます。
※Sys_LicUsedLocal:ローカルのライセンス使用量、Sys_LicUsedDist:リモートのライセンス使用量

select ID,DateTime,Sys_LicUsedLocal,Sys_LicUsedDist from SYS_History.SysData


出力結果は、以下のように 5分ごとのライセンスの使用状況が確認できます。
 
 

設定手順は以下のようになります。
%Monitor.System.HistorySys クラスを有効化したあと、システムモニタの再起動が必要となります。

 
^%SYSMONMGRユーティリティを使用した履歴モニタの設定方法


既定のインターバルは 5分(900秒)になりますが、こちらを変更することも可能です。
変更の方法は以下になります。
※変更後、システムモニタの再起動を行うようにしてください。

 
履歴モニタのインターバル設定方法


enlightened【ご参考】
使用中のライセンス情報の取得方法を教えてください。
管理ポータルのライセンス使用量のページに表示される値の意味
ライセンスサーバでライセンスを一元管理する方法
 

Comentarios (0)0
Inicie sesión o regístrese para continuar
Pregunta
· 10 oct, 2023

Connection Refused ao utilizar o IRIS Community no java com JDBC

Estou utilizando JDBC para conexão da aplicação JAVA com o IRIS versão Community, porém está ocorrendo o seguinte erro:

Caused by: java.sql.SQLException: [InterSystems IRIS JDBC] Communication link failure: Acesso Negado
    at com.intersystems.jdbc.IRISConnection.connect(IRISConnection.java:751)
    at com.intersystems.jdbc.IRISConnection.<init>(IRISConnection.java:165)
    at com.intersystems.jdbc.IRISDriver.connect(IRISDriver.java:58)
    ... 46 more

Ao verificar o relatório de auditoria do banco IRIS verifiquei o seguinte log de erro:

Mensagem de erro: ERRO #5915: Não foi possível alocar uma licença
Nome do serviço: %Service_Bindings
$I: |TCP|1972|37861
$P: |TCP|1972|37861

3 comentarios
Comentarios (3)3
Inicie sesión o regístrese para continuar
Pregunta
· 8 oct, 2023

Automatic prettification of JSON in Visual Trace

Hello everyone,

Is there a way to prettify the JSON streams in the incoming HTTP messages so that they are more readable in Visual Trace?

The HTTP messages sent by many software aren't prettified and are displayed like this in the Visual Trace:

On the other hand, other software like Postman prettify the messages and they are displayed in this way:

I know there is a JSON Formatter class, however what I would like is an automatic setting that automatically prettifies the JSON displayed in the Visual Trace without having to go through code.

Is there anything similar? 

3 comentarios
Comentarios (3)1
Inicie sesión o regístrese para continuar
Anuncio
· 6 oct, 2023

[Video] Embedded Source Control with Git & Containers

Hi Community,

Watch this video to learn how to leverage embedded (server-side) source control in a build pipeline using the git- source-control package and other additional tools:

⏯ Embedded Source Control with Git & Containers @ Global Summit 2023

🗣 Presenter: @Pravin Barton, Senior Applications Developer, InterSystems

Subscribe to our YouTube channel InterSystems Developers to get the latest updates!

2 comentarios
Comentarios (2)2
Inicie sesión o regístrese para continuar
Pregunta
· 6 oct, 2023

Microsoft SQL Server 2022 PolyBase : Connect to Caché as an external datasource. Error running query on datatype

I've created a succesfull connection to Caché from SQL Server.

But when I run a SELECT on a table it gives an error on for example PrijsAkCatV.

Probably a datatype-error.

Does someone has a solution for this problem ?

 

Caché Table :

Property PrijsAkCatVm As Asci.Getal(CAPTION = "Aankoopprijs VM", HINT = "Bruto aankoopprijs in vreemde munt|De bruto aankoopprijs (catalogusprijs) in vreemde munt per eenheid van aankoop.#Prix d'achat brute en devise|Le prix d'achat brute en devise par unité d'achat.", SCALE = 4);
 

Class Asci.Getal Extends %Library.Numeric
{ Parameter HINT; Parameter VIEW = 1; Parameter VISIBLE = 1; Parameter VOLGORDE; ///   Zorgt ervoor dat de output numeriek is.
///   Was een probleem als er getallen in de zone zaten met vooraan een punt vb .23
ClassMethod StorageToLogical(%val As %Library.String) As %Library.Numeric
{
 +%val
} }

External Table :

 

CREATE EXTERNAL TABLE Producten(
    ID INT NOT NULL, 
    ProdCode NVARCHAR (255) NULL,
    ProdNaam NVARCHAR (255) NULL,
    PrijsAkCat NUMERIC (15,4) NULL,
    PrijsAkCatVm NUMERIC (15,4) NULL,
    PrijsAkNetto NUMERIC (15,4) NULL,
    PrijsVkexcl NUMERIC (15,4) NULL,
    PrijsVkincl NUMERIC (15,4) NULL
) WITH (
    LOCATION='ASCISQL.DkDis.Producten',
    DATA_SOURCE=intersystems_source
);

Query :

SELECT TOP (1000) [ID]
      ,[ProdCode]
      ,[ProdNaam]
      ,[PrijsAkCat]
      ,[PrijsAkCatVm]
      ,[PrijsAkNetto]
      ,[PrijsVkexcl]
      ,[PrijsVkincl]
  FROM [ASCISQL].[dbo].[Producten]

Error :

Msg 7320, Level 16, State 110, Line 1
Cannot execute the query "Remote Query" against OLE DB provider "MSOLEDBSQL" for linked server "(null)". 105082;Generic ODBC error: OdbcBufferReader.ReadBuffer, error in OdbcReadBuffer: SqlState: IM001, NativeError: 0, 'Error calling: SQLSetDescField(this->GetHdesc(), (SQLSMALLINT)column->idxServerCol, SQL_DESC_TYPE, (VOID*)column->odbcReadType, 0), SQL return code: -1 | SQL Error Info:  Error <1>: ErrorMsg: [Microsoft][ODBC Driver Manager] Driver does not support this function | Error calling: pReadConn->ReadBuffer(pBuffer, bufferOffset, bufferLength, pBytesRead, pRowsRead) | state: FFFF, number: 40, active connections: 1', Connection String: Dsn=ASCISQL;uid=_SYSTEM;server=127.0.0.1;port=1972;database=ASCISQL.
 

4 comentarios
Comentarios (4)3
Inicie sesión o regístrese para continuar