Modify this file /opt/homebrew/Cellar/solr/X.XX/homebrew.mxcl.solr.plist to add these lines
<key>EnvironmentVariables</key>
<dict>
<key>SOLR_JAVA_MEM</key>
<string>-Xmx2g</string>
</dict>
Save and restart Solr
$ brew services restart solr
Modify this file /opt/homebrew/Cellar/solr/X.XX/homebrew.mxcl.solr.plist to add these lines
<key>EnvironmentVariables</key>
<dict>
<key>SOLR_JAVA_MEM</key>
<string>-Xmx2g</string>
</dict>
Save and restart Solr
$ brew services restart solr
I couldn't find this link when searching with google https://www.collectd.org/documentation/manpages/collectd.conf.html#plugin-postgresq...