You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by "yongj (via GitHub)" <gi...@apache.org> on 2023/02/01 09:13:08 UTC

[GitHub] [cassandra] yongj opened a new pull request, #2123: Add cache type information for maximum memory usage warning message

yongj opened a new pull request, #2123:
URL: https://github.com/apache/cassandra/pull/2123

   Add cache type information for maximum memory usage warning message
   
   Tested on one server by setting the networking_cache_size to 1MiB. The new INFO message looks like below in the system log:
   `INFO  [Messaging-EventLoop-3-1] 2023-02-01 09:00:47,673 NoSpamLogger.java:105 - Maximum memory usage reached (1.000MiB) for networking, cannot allocate chunk of 8.000MiB`
   
   patch by Yong Jiang; reviewed by <Reviewers> for CASSANDRA-18184
   The [Cassandra Jira](https://issues.apache.org/jira/projects/CASSANDRA/issues/)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org


[GitHub] [cassandra] yongj commented on a diff in pull request #2123: Add cache type information for maximum memory usage warning message

Posted by "yongj (via GitHub)" <gi...@apache.org>.
yongj commented on code in PR #2123:
URL: https://github.com/apache/cassandra/pull/2123#discussion_r1092990809


##########
src/java/org/apache/cassandra/utils/memory/BufferPool.java:
##########
@@ -441,8 +441,8 @@ private Chunk allocateMoreChunks()
                 {
                     if (memoryUsageThreshold > 0)
                     {
-                        noSpamLogger.info("Maximum memory usage reached ({}), cannot allocate chunk of {}",
-                                          readableMemoryUsageThreshold, READABLE_MACRO_CHUNK_SIZE);
+                        noSpamLogger.info("Maximum memory usage reached ({}) for {}, cannot allocate chunk of {}",

Review Comment:
   Thanks for the suggestion. That will provide more context. I will make the change. Do I need to creat a new pull request or make the change based on current one?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org


[GitHub] [cassandra] yongj commented on a diff in pull request #2123: Add cache type information for maximum memory usage warning message

Posted by "yongj (via GitHub)" <gi...@apache.org>.
yongj commented on code in PR #2123:
URL: https://github.com/apache/cassandra/pull/2123#discussion_r1093011704


##########
src/java/org/apache/cassandra/utils/memory/BufferPool.java:
##########
@@ -441,8 +441,8 @@ private Chunk allocateMoreChunks()
                 {
                     if (memoryUsageThreshold > 0)
                     {
-                        noSpamLogger.info("Maximum memory usage reached ({}), cannot allocate chunk of {}",
-                                          readableMemoryUsageThreshold, READABLE_MACRO_CHUNK_SIZE);
+                        noSpamLogger.info("Maximum memory usage reached ({}) for {}, cannot allocate chunk of {}",

Review Comment:
   sounds good. I have pushed the change to my branch.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org


[GitHub] [cassandra] Maxwell-Guo commented on a diff in pull request #2123: Add cache type information for maximum memory usage warning message

Posted by "Maxwell-Guo (via GitHub)" <gi...@apache.org>.
Maxwell-Guo commented on code in PR #2123:
URL: https://github.com/apache/cassandra/pull/2123#discussion_r1092999270


##########
src/java/org/apache/cassandra/utils/memory/BufferPool.java:
##########
@@ -441,8 +441,8 @@ private Chunk allocateMoreChunks()
                 {
                     if (memoryUsageThreshold > 0)
                     {
-                        noSpamLogger.info("Maximum memory usage reached ({}), cannot allocate chunk of {}",
-                                          readableMemoryUsageThreshold, READABLE_MACRO_CHUNK_SIZE);
+                        noSpamLogger.info("Maximum memory usage reached ({}) for {}, cannot allocate chunk of {}",

Review Comment:
   you can just modify the change on the current code, and doing a new git push to you branch ,then we will see the change here,



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org


[GitHub] [cassandra] Maxwell-Guo commented on a diff in pull request #2123: Add cache type information for maximum memory usage warning message

Posted by "Maxwell-Guo (via GitHub)" <gi...@apache.org>.
Maxwell-Guo commented on code in PR #2123:
URL: https://github.com/apache/cassandra/pull/2123#discussion_r1092985329


##########
src/java/org/apache/cassandra/utils/memory/BufferPool.java:
##########
@@ -441,8 +441,8 @@ private Chunk allocateMoreChunks()
                 {
                     if (memoryUsageThreshold > 0)
                     {
-                        noSpamLogger.info("Maximum memory usage reached ({}), cannot allocate chunk of {}",
-                                          readableMemoryUsageThreshold, READABLE_MACRO_CHUNK_SIZE);
+                        noSpamLogger.info("Maximum memory usage reached ({}) for {}, cannot allocate chunk of {}",

Review Comment:
   see line 461 , may be " for {} buffer pool " is better and consistent with line 461‘s log message.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org


[GitHub] [cassandra] smiklosovic closed pull request #2123: Add cache type information for maximum memory usage warning message

Posted by "smiklosovic (via GitHub)" <gi...@apache.org>.
smiklosovic closed pull request #2123: Add cache type information for maximum memory usage warning message
URL: https://github.com/apache/cassandra/pull/2123


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org