Page 1 of 1
Tracking license usage from License Server
Posted: Fri Jan 16, 2009 12:55 am
by csalsa
Hi
Is it possible to get statistics from the License Server on the usage of OxygenXML licenses? Say as a log file? I want to know how many licenses are in use and then, if they are almost all used, I can budget for purchasing more licenses.
Ideally, I would like the log file to have columns like:
- Date/time.
- Current count of licenses in use.
- Action. Say took/released license.
- Action succeeded/failed.
- If action failed, reason for failure else empty string. Eg. "Exceeded licenses".
- Identify of user. Say login and IP address of user.
Whatever the format of the log file, it should be parsable for reporting (similar to IIS logs).
Re: Tracking license usage from License Server
Posted: Fri Jan 16, 2009 11:55 am
by sorin_ristache
Hello,
The data that you asked is available in the standard output of the license server as a sequence of logging messages that are sent to output when they happen in the server. A logging message specifies only the current action executed by the server: send a license to the user that requested it, receive a license from a user that released it, send an error to the user if there are no available licenses, etc. We will consider a format for all the logging messages so that you can display the log as a table with the columns that you specified.
Regards,
Sorin
Re: Tracking license usage from License Server
Posted: Mon Jan 19, 2009 12:15 am
by csalsa
I found the licence log file but it does not have the information that I require (as you noted in your previous post).
I did notice two types of exceptions in the file for a null pointer and socket error. I put part of the log file below which contained the errors. However, no one has reported to me problems connecting to OxygenXML.
Code: Select all
2514893363 INFO [ main ] ro.sync.licensemanager.server.LicenseServer - Client connected from: /10.19.35.66
2514893378 FATAL [ License Server Socket Processor ] ro.sync.B.A.A - java.lang.NullPointerException
java.lang.NullPointerException
at ro.sync.licensemanager.server.LicenseServer.A(Unknown Source)
at ro.sync.licensemanager.server.LicenseServer.A(Unknown Source)
at ro.sync.licensemanager.server.LicenseServer$1.A(Unknown Source)
at ro.sync.B.A.A.run(Unknown Source)
2514901363 INFO [ main ] ro.sync.licensemanager.server.LicenseServer - Client connected from: /10.19.35.66
2514909378 INFO [ main ] ro.sync.licensemanager.server.LicenseServer - Client connected from: /10.19.35.66
2514915316 INFO [ main ] ro.sync.licensemanager.server.LicenseServer - Client connected from: /10.19.35.66
2514915316 FATAL [ License Server Socket Processor ] ro.sync.licensemanager.server.LicenseServer - java.net.SocketException: Connection reset
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(Unknown Source)
at java.io.FilterInputStream.read(Unknown Source)
at ro.sync.D.A.D.read(Unknown Source)
at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(Unknown Source)
at sun.nio.cs.StreamDecoder$CharsetSD.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at java.io.BufferedReader.fill(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at ro.sync.licensemanager.server.LicenseServer.A(Unknown Source)
at ro.sync.licensemanager.server.LicenseServer.A(Unknown Source)
at ro.sync.licensemanager.server.LicenseServer$1.A(Unknown Source)
at ro.sync.B.A.A.run(Unknown Source)
2514917425 INFO [ main ] ro.sync.licensemanager.server.LicenseServer - Client connected from: /10.19.35.66
I hope you consider the enhancement for recording statistics that I posted earlier.
Re: Tracking license usage from License Server
Posted: Mon Jan 19, 2009 1:55 pm
by sorin_ristache
Hello,
csalsa wrote:I did notice two types of exceptions in the file for a null pointer and socket error. I put part of the log file below which contained the errors. However, no one has reported to me problems connecting to OxygenXML.
We will check to see what caused the NullPointerException. The
Connection reset exception may happen if an Oxygen instance that requested a floating license from the server was killed abruptly or it crashed instead of being closed with a File -> Exit action or with the X button of the title bar. It should not cause any problems because the result is that the floating license is released and returned to the server. The exception just signals that the connection was closed abruptly.
csalsa wrote:I hope you consider the enhancement for recording statistics that I posted earlier.
Yes, we will consider the suggested enhancement for a future version of Oxygen.
Regards,
Sorin
Re: Tracking license usage from License Server
Posted: Thu Nov 05, 2009 5:04 pm
by sorin_ristache
Hello,
sorin wrote:csalsa wrote:I hope you consider the enhancement for recording statistics that I posted earlier.
Yes, we will consider the suggested enhancement for a future version of Oxygen.
We improved the statistics that are reported in the log file. The username is displayed for each floating license that is granted or returned. For each event of granting or returning the license there are included the number of available licenses and a list of each user and IP for each used license. You can try the new version of license server from
here or
here. They are not displayed as a table yet.
Regards,
Sorin