Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

REST API performance is decreasing

SmartConnector Forum

Schneider Electric support forum about SmartConnector applications for integration of other building management systems (BMS) into EcoStruxure Building Operation.

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • EcoStruxure Building
  • SmartConnector
  • SmartConnector Forum
  • REST API performance is decreasing
Options
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
JeffBowman
Sisko JeffBowman Sisko
164
ardak
ardak Schneider Alumni (Retired)
34
sesa180908_brid
Commander sesa180908_brid Commander
34
mike_meirovitz
Commander mike_meirovitz
21
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Back to SmartConnector Forum
mike_meirovitz
Commander mike_meirovitz
Commander

Posted: ‎2018-12-12 04:04 AM . Last Modified: ‎2018-12-12 10:50 PM

0 Likes
6
956
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2018-12-12 04:04 AM

REST API performance is decreasing

Hi,

I have noticed that the response time of the REST API calls is decreasing. After computer startup, the response time of the "GET /Notifications/{id}/Items" API is 300 miliseconds, after a while it is 500 miliseconds and later is may decrease to 1.2 seconds.

See our log below.

 

331 miliseconds

2018-12-12 13:31:06,655 [CM] INFO SEEwsRestApi - GetNotificationItems, NotificationId = '0E5B593DDC0F4E048B38BEF560D176F8'
2018-12-12 13:31:06,986 [CM] INFO SEEwsRestApi - GetNotificationItems, status code = 200, Response

 

...

 

640 miliseconds

2018-12-12 13:54:37,304 [CM] INFO SEEwsRestApi - GetNotificationItems, NotificationId = '45BF462B18C64775AA0A044FCA64E279'
2018-12-12 13:54:37,944 [CM] INFO SEEwsRestApi - GetNotificationItems, status code = 200, Response = '[]'  

 

Any idea what is the reason fore this and how it can be avoided?

 

Thanks.

 

Mike

 

One more thing - a day after, the response time is amazing! The response time is less than one milisecond! See below:

2018-12-13 08:45:56,158 [CM] INFO SEEwsRestApi - GetNotificationItems, NotificationId = '44E7A9125E224BAAB14817D55F892A63'

2018-12-13 08:45:56,158 [CM] INFO SEEwsRestApi - GetNotificationItems, status code = 200, Response = '[]'

 

 Any idea?

 

Thanks.

Mike

Reply
  • All forum topics
  • Previous Topic
  • Next Topic
Replies 6
JeffBowman
Sisko JeffBowman Sisko
Sisko

Posted: ‎2018-12-13 05:18 AM

0 Likes
5
940
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2018-12-13 05:18 AM

Hi Michael,

 

I am not sure what is going on, but I will look into it and let you know what I find.

 

Regards,

 

-Jeff

Reply
Adam_Summers
Lt. Commander Adam_Summers Lt. Commander
Lt. Commander

Posted: ‎2018-12-14 01:17 AM

0 Likes
4
935
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2018-12-14 01:17 AM

 Hi Jeff, my suggestion would be that this could be related to the subscription/notification not getting cleaned up properly. Would be worth checking how many records are in the db for subscriptions and notifications. Perhaps this affects the query response time internally resulting in degraded performance over time if they aren't being cleaned up?

Reply
mike_meirovitz
Commander mike_meirovitz
Commander

Posted: ‎2018-12-14 01:33 AM

0 Likes
0
932
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2018-12-14 01:33 AM

Hi Adam, Jeff,

 

I don't see the SmartConnector databases in SQL Server Management studio... See the attached screen capture.

It seems that the SmartConnector is working fine without it...

 

Thanks.

Mike


Capture_SQL_Server.PNG

Reply
mike_meirovitz
Commander mike_meirovitz
Commander

Posted: ‎2018-12-18 12:19 AM

0 Likes
2
926
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2018-12-18 12:19 AM

Jeff,

 

Per your suggestion, we ran some tests to track the memory usage of the SmartConnector service. See below.

 

Mongoose.Service.Exe

 

Time     Memory(K)
08:16       41,000    before starting the OPC server
08:17     109,748   After starting the OPC server
08:18     129,224
08:21     132,164
09:18     137,116
09:34       75,152
10:12       77,804

 

I hope it helps.

 

We expect that the API response time will be few miliseconds immediatly when we start our program and not only after one hour.

 

Thank you.

 

Michael

Reply
JeffBowman
Sisko JeffBowman Sisko
Sisko

Posted: ‎2019-01-02 05:15 AM

0 Likes
1
920
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2019-01-02 05:15 AM

Hi Michael,

 

If I had to guess, this has to do with the caching that Smart Connector is doing for the notifications.

 

They are cleared every 60 minutes.. If I had to guess.. it is slow for the first hour when you start running because that is when you get ALL the points data (I think you mentioned something like 20,000 value items?) and it all gets tossed into the cache, but then after that EWS is only pulling back data that has changed, so as the original values in the cache expires, the memory usage of the cache goes down, and accessing those values are quicker. 

 

My advice would be to only subscribe to points when you actually are using the values, not just subscribing to everything because they might be needed at some point. That way you can keep the cache memory usage smaller and improve performance. If I have some time, I will take a look and see if there is anything that can be changed in the framework to improve this performance, but likely that will take some time, and I would look at your applicaiton end first for a quick fix.

 

Regards,

 

-Jeff

Reply
mike_meirovitz
Commander mike_meirovitz
Commander

Posted: ‎2019-01-02 07:13 AM

0 Likes
0
916
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2019-01-02 07:13 AM

Hi Jeff,

 

Thank you for your answer. As you can see in the table below, there is no much difference between the memory consumption when the SmartConnector starts and after one hour. (129K vs, 78K). Do you think that this difference has such an effect on the API performance?

 

08:17     109,748   After starting the OPC server
08:18     129,224
08:21     132,164
09:18     137,116
09:34       75,152
10:12       77,804

 

Thanks.

Mike

Reply
Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of