Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQL persistence policy is restarting cygnus #2273

Closed
AlvaroVega opened this issue Jul 4, 2023 · 3 comments
Closed

SQL persistence policy is restarting cygnus #2273

AlvaroVega opened this issue Jul 4, 2023 · 3 comments

Comments

@AlvaroVega
Copy link
Member

A configuration like:

cygnus-ngsi.sinks.postgis-type-database-sink.persistence_policy.expiration_time = 7776000
cygnus-ngsi.sinks.postgis-type-database-sink.persistence_policy.checking_time = 3600

is causing problems and restarting cygnus each 1 hour. Maybe a uge among or resources are located when checking persistence_policy thread try to work with table which a high number of records

@AlvaroVega
Copy link
Member Author

Maybe related #2265

@AlvaroVega
Copy link
Member Author

AlvaroVega commented Aug 2, 2023

When a table contains about 2M or records then...

7a1; cbnotif=1 | trans=35602433-77b2-463e-a360-8555ca69e05e | srv=N/A | subsrv=N/A | comp=cygnus-ngsi | op=select | msg=com.telefonica.iot.cygnus.backends.sql.SQLBackendImpl[331] : POSTGRESQL Executing SQL query 'select * from smartcity.thing2 order by recvTime'
java.lang.OutOfMemoryError: Java heap space

@fgalan
Copy link
Member

fgalan commented Aug 4, 2023

After the merge of PR #2281 can this issue be closed? Or is something else pending?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants